@vect/object-select
Advanced tools
Comparing version 0.3.9 to 0.3.10
@@ -11,5 +11,3 @@ 'use strict'; | ||
const leap = function (o, start, gap) { | ||
var _this$keys; | ||
const keys = (_this$keys = this === null || this === void 0 ? void 0 : this.keys) !== null && _this$keys !== void 0 ? _this$keys : Object.keys(o); | ||
const keys = (this === null || this === void 0 ? void 0 : this.keys) ?? Object.keys(o); | ||
const wd = keys === null || keys === void 0 ? void 0 : keys.length, | ||
@@ -41,8 +39,6 @@ df = comparer.max(gap, wd), | ||
const shuffle = function (o, size) { | ||
var _this$keys; | ||
const keys = (_this$keys = this === null || this === void 0 ? void 0 : this.keys) !== null && _this$keys !== void 0 ? _this$keys : Object.keys(o); | ||
const keys = (this === null || this === void 0 ? void 0 : this.keys) ?? Object.keys(o); | ||
let l = keys === null || keys === void 0 ? void 0 : keys.length, | ||
k; | ||
const lo = comparer.max(0, l - (size !== null && size !== void 0 ? size : l)), | ||
const lo = comparer.max(0, l - (size ?? l)), | ||
rs = {}; | ||
@@ -49,0 +45,0 @@ |
@@ -7,5 +7,3 @@ import { max, min } from '@aryth/comparer'; | ||
const leap = function (o, start, gap) { | ||
var _this$keys; | ||
const keys = (_this$keys = this === null || this === void 0 ? void 0 : this.keys) !== null && _this$keys !== void 0 ? _this$keys : Object.keys(o); | ||
const keys = (this === null || this === void 0 ? void 0 : this.keys) ?? Object.keys(o); | ||
const wd = keys === null || keys === void 0 ? void 0 : keys.length, | ||
@@ -37,8 +35,6 @@ df = max(gap, wd), | ||
const shuffle = function (o, size) { | ||
var _this$keys; | ||
const keys = (_this$keys = this === null || this === void 0 ? void 0 : this.keys) !== null && _this$keys !== void 0 ? _this$keys : Object.keys(o); | ||
const keys = (this === null || this === void 0 ? void 0 : this.keys) ?? Object.keys(o); | ||
let l = keys === null || keys === void 0 ? void 0 : keys.length, | ||
k; | ||
const lo = max(0, l - (size !== null && size !== void 0 ? size : l)), | ||
const lo = max(0, l - (size ?? l)), | ||
rs = {}; | ||
@@ -45,0 +41,0 @@ |
{ | ||
"name": "@vect/object-select", | ||
"version": "0.3.9", | ||
"version": "0.3.10", | ||
"description": "Select from object/array", | ||
@@ -18,6 +18,6 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@aryth/comparer": "^0.3.15", | ||
"@aryth/rand": "^0.3.15", | ||
"@vect/swap": "^0.3.9", | ||
"@vect/vector-mapper": "^0.3.9" | ||
"@aryth/comparer": "^0.3.19", | ||
"@aryth/rand": "^0.3.19", | ||
"@vect/swap": "^0.3.10", | ||
"@vect/vector-mapper": "^0.3.10" | ||
}, | ||
@@ -39,3 +39,3 @@ "repository": { | ||
"homepage": "https://github.com/hoyeungw/vect#readme", | ||
"gitHead": "840d4442d7bc092f65cb0c4d6efd7734b26ec920" | ||
"gitHead": "cf716b1eeb2ed3e653a75f1924c318c5f80bd23a" | ||
} |
9584
208
Updated@aryth/comparer@^0.3.19
Updated@aryth/rand@^0.3.19
Updated@vect/swap@^0.3.10
Updated@vect/vector-mapper@^0.3.10