You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

@vect/column-quantifier

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vect/column-quantifier - npm Package Compare versions

Comparing version

to
0.3.10

@@ -48,16 +48,2 @@ 'use strict';

/**
* Return true if at least one element in a specified column of a matrix matches the input criteria.
* Return false if either height or width is zero, or specified column index >= width.
* @param {*[][]} mx
* @param {number} y
* @param {function(*,number?,number?):*} crit
* @param {number} [h]
* @param {number} [w]
* @returns {boolean}
*/
const some = (mx, y, crit, h, w) => columnSome.call({
y
}, mx, crit, h, w);
/**
* Return true if some element in a specified column of a matrix matches the input criteria.

@@ -72,3 +58,3 @@ * Return false if either height or width is zero, or specified column index >= width.

function columnSome$1(mx, crit, h, w) {
function columnSome(mx, crit, h, w) {
var _mx$;

@@ -86,6 +72,21 @@

}
const ColumnSome = y => columnSome$1.bind({
const ColumnSome = y => columnSome.bind({
y
});
/**
* Return true if at least one element in a specified column of a matrix matches the input criteria.
* Return false if either height or width is zero, or specified column index >= width.
* @param {*[][]} mx
* @param {number} y
* @param {function(*,number?,number?):*} crit
* @param {number} [h]
* @param {number} [w]
* @returns {boolean}
*/
const some = (mx, y, crit, h, w) => columnSome.call({
y
}, mx, crit, h, w);
exports.ColumnEvery = ColumnEvery;

@@ -92,0 +93,0 @@ exports.ColumnSome = ColumnSome;

@@ -44,16 +44,2 @@ /**

/**
* Return true if at least one element in a specified column of a matrix matches the input criteria.
* Return false if either height or width is zero, or specified column index >= width.
* @param {*[][]} mx
* @param {number} y
* @param {function(*,number?,number?):*} crit
* @param {number} [h]
* @param {number} [w]
* @returns {boolean}
*/
const some = (mx, y, crit, h, w) => columnSome.call({
y
}, mx, crit, h, w);
/**
* Return true if some element in a specified column of a matrix matches the input criteria.

@@ -68,3 +54,3 @@ * Return false if either height or width is zero, or specified column index >= width.

function columnSome$1(mx, crit, h, w) {
function columnSome(mx, crit, h, w) {
var _mx$;

@@ -82,6 +68,21 @@

}
const ColumnSome = y => columnSome$1.bind({
const ColumnSome = y => columnSome.bind({
y
});
/**
* Return true if at least one element in a specified column of a matrix matches the input criteria.
* Return false if either height or width is zero, or specified column index >= width.
* @param {*[][]} mx
* @param {number} y
* @param {function(*,number?,number?):*} crit
* @param {number} [h]
* @param {number} [w]
* @returns {boolean}
*/
const some = (mx, y, crit, h, w) => columnSome.call({
y
}, mx, crit, h, w);
export { ColumnEvery, ColumnSome, every, some };
{
"name": "@vect/column-quantifier",
"version": "0.3.9",
"version": "0.3.10",
"description": "Every and some for 2-array",

@@ -35,3 +35,3 @@ "main": "dist/index.cjs.js",

"homepage": "https://github.com/hoyeungw/vect#readme",
"gitHead": "840d4442d7bc092f65cb0c4d6efd7734b26ec920"
"gitHead": "cf716b1eeb2ed3e653a75f1924c318c5f80bd23a"
}