Skip to content

Commit

Permalink
Removed lodash dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Puzrin committed Feb 1, 2015
1 parent 4a5ee2d commit e76b70a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"eslint": "0.13.0",
"eslint-plugin-nodeca": "~1.0.3",
"istanbul": "*",
"lodash": "*",
"mocha": "*",
"ndoc": "~3.1.0",
"pegjs": "~0.8.0",
Expand Down
7 changes: 3 additions & 4 deletions test/fixtures-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

var fs = require('fs');
var p = require('path');
var _ = require('lodash');

function parse(input, options) {
var lines = input.split(/\r?\n/g),
Expand Down Expand Up @@ -113,12 +112,12 @@ function load(path, options, iterator) {
var input, parsed,
stat = fs.statSync(path);

if (_.isFunction(options)) {
if (typeof options === 'function') {
iterator = options;
options = { sep: [ '.' ] };
} else if (_.isString(options)) {
} else if (typeof options === 'string') {
options = { sep: options.split('') };
} else if (_.isArray(options)) {
} else if (Array.isArray(options)) {
options = { sep: options };
}

Expand Down

0 comments on commit e76b70a

Please sign in to comment.