Преглед изворни кода

fixed object.filter method

mightyplow пре 7 година
родитељ
комит
6d8a4c30ec
2 измењених фајлова са 3 додато и 1 уклоњено
  1. 2 0
      lib/object.js
  2. 1 1
      package.json

+ 2 - 0
lib/object.js

@@ -10,6 +10,8 @@ module.exports = {
             if (pred(key, value)) {
                 filtered[key] = value;
             }
+
+            return filtered;
         }, {});
     },
 

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@mightyplow/jslib",
-  "version": "0.5.0",
+  "version": "0.5.1",
   "description": "js, helpers library",
   "main": "jslib.js",
   "devDependencies": {