Explorar o código

fixed object.filter method

mightyplow %!s(int64=7) %!d(string=hai) anos
pai
achega
6d8a4c30ec
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  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": {