Re-tag array snippets

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-18 14:58:09 +03:00
parent 821f442bec
commit c2fdfac6ce
43 changed files with 48 additions and 48 deletions

View File

@ -3,7 +3,7 @@ title: head
tags: array,beginner
---
Returns the head of a list.
Returns the head of an array.
- Check if `arr` is truthy and has a `length` property, use `arr[0]` if possible to return the first element, otherwise return `undefined`.