Skip to content

Conversation

@tkyoun0421
Copy link
Contributor

@tkyoun0421 tkyoun0421 commented Aug 20, 2023

기능설명

배열의 마지막 요소를 반환하는 기능입니다

예제 코드

const arr1 = [1, 2, 3, 4, 5, 6];
const arr2 = ['a', 'b', 'c'];

console.log(last(arr1)) // 6
console.log(last(arr2)) // c

@tkyoun0421 tkyoun0421 changed the title Feat: add last Feat: Add last Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant