Skip to content

Commit

Permalink
Use native Object.values()` (#1880)
Browse files Browse the repository at this point in the history
  • Loading branch information
albinekb authored and ppot committed May 28, 2017
1 parent af43bbb commit 216c475
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
5 changes: 2 additions & 3 deletions lib/utils/object.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import vals from 'object-values';

const valsCache = new WeakMap();

export function values(imm) {
if (!valsCache.has(imm)) {
valsCache.set(imm, vals(imm));
valsCache.set(imm, Object.values(imm));
}
return valsCache.get(imm);
}
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@
"json-loader": "0.5.4",
"mousetrap": "1.6.0",
"ms": "0.7.2",
"object-values": "1.0.0",
"php-escape-shell": "1.0.0",
"react": "15.3.2",
"react-addons-pure-render-mixin": "15.3.2",
Expand All @@ -136,7 +135,7 @@
"uuid": "3.0.0"
},
"devDependencies": {
"asar":"0.13.0",
"asar": "0.13.0",
"ava": "0.17.0",
"babel-cli": "6.24.1",
"babel-core": "6.24.1",
Expand Down
4 changes: 0 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4198,10 +4198,6 @@ object-keys@~0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-0.4.0.tgz#28a6aae7428dd2c3a92f3d95f21335dd204e0336"

object-values@1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/object-values/-/object-values-1.0.0.tgz#72af839630119e5b98c3b02bb8c27e3237158105"

object.omit@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa"
Expand Down

0 comments on commit 216c475

Please sign in to comment.