@vect/object-select
Advanced tools
Comparing version 0.4.9 to 0.4.10
@@ -11,4 +11,4 @@ 'use strict'; | ||
const leap = function (o, start, gap) { | ||
const keys = (this == null ? void 0 : this.keys) ?? Object.keys(o); | ||
const wd = keys == null ? void 0 : keys.length, | ||
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, | ||
df = comparer.max(gap, wd), | ||
@@ -39,4 +39,4 @@ rs = {}; | ||
const shuffle = function (o, size) { | ||
const keys = (this == null ? void 0 : this.keys) ?? Object.keys(o); | ||
let l = keys == null ? void 0 : keys.length, | ||
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; | ||
@@ -52,4 +52,4 @@ const lo = comparer.max(0, l - (size ?? l)), | ||
function select(o) { | ||
const keys = Array.isArray(this) ? this : this == null ? void 0 : this.keys; | ||
const l = keys == null ? void 0 : keys.length, | ||
const keys = Array.isArray(this) ? this : this === null || this === void 0 ? void 0 : this.keys; | ||
const l = keys === null || keys === void 0 ? void 0 : keys.length, | ||
ob = {}; | ||
@@ -74,3 +74,3 @@ | ||
} = this; | ||
const l = keys == null ? void 0 : keys.length, | ||
const l = keys === null || keys === void 0 ? void 0 : keys.length, | ||
ve = Array(l); | ||
@@ -77,0 +77,0 @@ |
@@ -7,4 +7,4 @@ import { max, min } from '@aryth/comparer'; | ||
const leap = function (o, start, gap) { | ||
const keys = (this == null ? void 0 : this.keys) ?? Object.keys(o); | ||
const wd = keys == null ? void 0 : keys.length, | ||
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, | ||
df = max(gap, wd), | ||
@@ -35,4 +35,4 @@ rs = {}; | ||
const shuffle = function (o, size) { | ||
const keys = (this == null ? void 0 : this.keys) ?? Object.keys(o); | ||
let l = keys == null ? void 0 : keys.length, | ||
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; | ||
@@ -48,4 +48,4 @@ const lo = max(0, l - (size ?? l)), | ||
function select(o) { | ||
const keys = Array.isArray(this) ? this : this == null ? void 0 : this.keys; | ||
const l = keys == null ? void 0 : keys.length, | ||
const keys = Array.isArray(this) ? this : this === null || this === void 0 ? void 0 : this.keys; | ||
const l = keys === null || keys === void 0 ? void 0 : keys.length, | ||
ob = {}; | ||
@@ -70,3 +70,3 @@ | ||
} = this; | ||
const l = keys == null ? void 0 : keys.length, | ||
const l = keys === null || keys === void 0 ? void 0 : keys.length, | ||
ve = Array(l); | ||
@@ -73,0 +73,0 @@ |
{ | ||
"name": "@vect/object-select", | ||
"version": "0.4.9", | ||
"version": "0.4.10", | ||
"description": "Select from object/array", | ||
@@ -20,4 +20,4 @@ "main": "dist/index.cjs.js", | ||
"@aryth/rand": "^0.3.26", | ||
"@vect/swap": "^0.4.9", | ||
"@vect/vector-mapper": "^0.4.9" | ||
"@vect/swap": "^0.4.10", | ||
"@vect/vector-mapper": "^0.4.10" | ||
}, | ||
@@ -39,3 +39,3 @@ "repository": { | ||
"homepage": "https://github.com/hoyeungw/vect#readme", | ||
"gitHead": "2b1a6642d2b4dea4f680a501bb29d6534626abe1" | ||
"gitHead": "1d5453c2bafd0c4cb02adaa1db576a139d3e1012" | ||
} |
9696
Updated@vect/swap@^0.4.10
Updated@vect/vector-mapper@^0.4.10