Closed cmelgarejo closed 4 years ago
Update head to check on empty, undefined, null array. So you you can guard against
head(); head([]); head(null); head(undefined); if (head(arr) === undefined) { // do nothing, or something else }
@cmelgarejo Sorry but you'll need to make this PR on the @30-seconds/code repo. The snippets in this repo are just a collection of snippets from other 30seconds repos.
Update head to check on empty, undefined, null array. So you you can guard against