From ab8b9010e72e498f03891c4065da5ae19f65a472 Mon Sep 17 00:00:00 2001 From: tunnckoCore Date: Thu, 27 Oct 2016 06:34:46 +0300 Subject: [PATCH] fix(deps): remove deps --- index.js | 4 +--- package.json | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index d984470..cef9be1 100644 --- a/index.js +++ b/index.js @@ -7,8 +7,6 @@ 'use strict' -var arrMap = require('arr-map') - /** * > Get function arguments names. * @@ -57,7 +55,7 @@ module.exports = function functionArguments (fn) { fnStr = '(' + fnStr + ')' var match = fnStr.match(/\(([\s\S]*)\)/) - return match ? arrMap(match[1].split(','), function (param) { + return match ? match[1].split(',').map(function (param) { return param.trim() }) : [] } diff --git a/package.json b/package.json index 3559b70..eb34d2a 100644 --- a/package.json +++ b/package.json @@ -20,9 +20,7 @@ "precommit": "git add --all", "commit": "git-cz" }, - "dependencies": { - "arr-map": "^2.0.0" - }, + "dependencies": {}, "devDependencies": { "commitizen": "^2.8.6", "coveralls": "^2.11.12",