UNPKG

take-last

Version:

Returns a new shallow copy of the last n elements taken from the end of the given array. When list.length < n the list returned contain list.length elements.

54 lines (53 loc) 1.68 kB
{ "name": "take-last", "description": "Returns a new shallow copy of the last n elements taken from the end of the given array. When list.length < n the list returned contain list.length elements.", "version": "0.1.4", "author": "Wil Moore III <wil.moore@wilmoore.com>", "bugs": { "url": "https://github.com/wilmoore/take-last.js/issues" }, "dependencies": { "curry2": "^0.1.0" }, "devDependencies": { "fixpack": "^2.2.0", "dependency-check": "^2.4.0", "istanbul": "^0.3.13", "nodemon": "^1.3.7", "standard": "^3.7.1", "tap-spec": "^2.2.2", "tape": "^4.0.0", "tape-catch": "^1.0.4" }, "homepage": "https://github.com/wilmoore/take-last.js", "keywords": [ "_.takeRight", "array", "array-last", "auto-curried", "copy", "curried", "last", "R.takeLast", "slice" ], "license": "MIT", "main": "index.js", "preferGlobal": false, "private": false, "repository": { "type": "git", "url": "https://github.com/wilmoore/take-last.js" }, "scripts": { "cover": "istanbul cover test.js", "dependency-check": "dependency-check ./package.json && dependency-check ./package.json --unused --no-dev", "dev": "nodemon -x 'npm run test --silent' -e 'js json'", "fixpack": "fixpack", "release-major": "npm version major && git push --follow-tags && npm publish", "release-minor": "npm version minor && git push --follow-tags && npm publish", "release-patch": "npm version patch && git push --follow-tags && npm publish", "standard": "standard", "test": "npm run dependency-check && npm run standard --silent && node test.js | tap-spec" } }