@vect/object-select
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -50,5 +50,3 @@ 'use strict'; | ||
function select(o) { | ||
const { | ||
keys | ||
} = this; | ||
const keys = Array.isArray(this) ? this : this == null ? void 0 : this.keys; | ||
const l = keys == null ? void 0 : keys.length, | ||
@@ -67,8 +65,4 @@ ob = {}; | ||
const selectObject = (o, keys) => select.call({ | ||
keys | ||
}, o); | ||
const SelectObject = keys => select.bind({ | ||
keys | ||
}); | ||
const selectObject = (o, keys) => select.call(keys, o); | ||
const SelectObject = keys => select.bind(keys); | ||
@@ -75,0 +69,0 @@ const values = function (o) { |
@@ -46,5 +46,3 @@ import { max, min } from '@aryth/comparer'; | ||
function select(o) { | ||
const { | ||
keys | ||
} = this; | ||
const keys = Array.isArray(this) ? this : this == null ? void 0 : this.keys; | ||
const l = keys == null ? void 0 : keys.length, | ||
@@ -63,8 +61,4 @@ ob = {}; | ||
const selectObject = (o, keys) => select.call({ | ||
keys | ||
}, o); | ||
const SelectObject = keys => select.bind({ | ||
keys | ||
}); | ||
const selectObject = (o, keys) => select.call(keys, o); | ||
const SelectObject = keys => select.bind(keys); | ||
@@ -71,0 +65,0 @@ const values = function (o) { |
{ | ||
"name": "@vect/object-select", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "Select from object/array", | ||
@@ -20,4 +20,4 @@ "main": "dist/index.cjs.js", | ||
"@aryth/rand": "^0.3.19", | ||
"@vect/swap": "^0.4.3", | ||
"@vect/vector-mapper": "^0.4.3" | ||
"@vect/swap": "^0.4.4", | ||
"@vect/vector-mapper": "^0.4.4" | ||
}, | ||
@@ -39,3 +39,3 @@ "repository": { | ||
"homepage": "https://github.com/hoyeungw/vect#readme", | ||
"gitHead": "c815be6b1e80fdde7f93f5e1a59ccfa415218890" | ||
"gitHead": "64fe5f653a2f38b881cf4ee403493b96f9611bc1" | ||
} |
9413
196
Updated@vect/swap@^0.4.4
Updated@vect/vector-mapper@^0.4.4