Permalink
Browse files

fixed pick -> filter require change

  • Loading branch information...
1 parent 3064425 commit efa3fa0fa7b910c9b786b6599388296020eec928 @KenjiTakahashi KenjiTakahashi committed Jul 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/util.js
View
4 src/util.js
@@ -3,7 +3,7 @@ var util = module.exports
var fs = require('fs'),
repeat = require('std/repeat'),
map = require('std/map'),
- pick = require('std/pick'),
+ filter = require('std/filter'),
isArray = require('std/isArray')
util.q = function(val) { return JSON.stringify(val) }
@@ -19,7 +19,7 @@ util.cleanup = function(ast) {
function clean(ast) {
if (ast instanceof Array) {
if (ast.length == 1) { return clean(ast[0]) }
- return map(pick(ast), clean)
+ return map(filter(ast), clean)
}
return ast || []
}

0 comments on commit efa3fa0

Please sign in to comment.