Use native Object.values()` (#1880)

This commit is contained in:
Albin Ekblom 2017-05-28 05:42:42 +02:00 committed by Philippe Potvin
parent af43bbbfed
commit 216c475c2b
3 changed files with 3 additions and 9 deletions

View file

@ -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);
}

View file

@ -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",
@ -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",

View file

@ -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"