Skip to content

Commit

Permalink
use array-ify
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemao committed Jun 14, 2015
1 parent 03120f3 commit 9cd7929
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
'use strict';
var arrayify = require('array-ify');
var dotPropGet = require('dot-prop').get;

function compareFunc(prop) {
return function(a, b) {
var ret = 0;

(Array.isArray(prop) ? prop : [prop]).some(function(el) {
arrayify(prop).some(function(el) {
var x;
var y;

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sorting"
],
"dependencies": {
"array-ify": "^1.0.0",
"dot-prop": "^2.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit 9cd7929

Please sign in to comment.