Every line of 'lodash first' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
127 function _first(values) { 128 return values[0]; 129 }
9 export function first(array: T[]): T { 10 if (!array.length) 11 return undefined; 12 return array[0]; 13 }
28 function first(a) { 29 return a.length > 0 ? a[0] : null; 30 }
153 function first(arr) { 154 return arr[0]; 155 }