diff options
Diffstat (limited to 'school/node_modules/lodash/last.js')
-rw-r--r-- | school/node_modules/lodash/last.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/school/node_modules/lodash/last.js b/school/node_modules/lodash/last.js deleted file mode 100644 index cad1eaf..0000000 --- a/school/node_modules/lodash/last.js +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Gets the last element of `array`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {Array} array The array to query. - * @returns {*} Returns the last element of `array`. - * @example - * - * _.last([1, 2, 3]); - * // => 3 - */ -function last(array) { - var length = array == null ? 0 : array.length; - return length ? array[length - 1] : undefined; -} - -module.exports = last; |