Skip to content

Commit

Permalink
use array-{filter,map,reduce}
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Dec 25, 2013
1 parent e29a216 commit 97a2fc9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 28 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var json = typeof JSON !== undefined ? JSON : require('jsonify');
var shim = require('./lib/shim');
var map = shim.map, filter = shim.filter, reduce = shim.reduce;
var map = require('array-map');
var filter = require('array-filter');
var reduce = require('array-reduce');

exports.quote = function (xs) {
return map(xs, function (s) {
Expand Down
25 changes: 0 additions & 25 deletions lib/shim.js

This file was deleted.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
},
"license": "MIT",
"dependencies": {
"jsonify": "0.0.0"
"jsonify": "~0.0.0",
"array-filter": "~0.0.0",
"array-reduce": "~0.0.0",
"array-map": "~0.0.0"
}
}

0 comments on commit 97a2fc9

Please sign in to comment.