extra-iterable
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -13,3 +13,3 @@ /** | ||
declare type ReadFunction<T> = () => T; | ||
type ReadFunction<T> = () => T; | ||
/** | ||
@@ -23,3 +23,3 @@ * Handle combining of two values. | ||
declare type CombineFunction<T> = (a: T, b: T) => T; | ||
type CombineFunction<T> = (a: T, b: T) => T; | ||
/** | ||
@@ -33,3 +33,3 @@ * Handle comparison of two values. | ||
declare type CompareFunction<T> = (a: T, b: T) => number; | ||
type CompareFunction<T> = (a: T, b: T) => number; | ||
/** | ||
@@ -43,3 +43,3 @@ * Handle processing of values in an iterable. | ||
declare type ProcessFunction<T> = (v: T, i: number, x: Iterable<T>) => void; | ||
type ProcessFunction<T> = (v: T, i: number, x: Iterable<T>) => void; | ||
/** | ||
@@ -54,3 +54,3 @@ * Handle selection of values in an iterable. | ||
declare type TestFunction<T> = (v: T, i: number, x: Iterable<T>) => boolean; | ||
type TestFunction<T> = (v: T, i: number, x: Iterable<T>) => boolean; | ||
/** | ||
@@ -65,3 +65,3 @@ * Handle transformation of a value to another. | ||
declare type MapFunction<T, U> = (v: T, i: number, x: Iterable<T>) => U; | ||
type MapFunction<T, U> = (v: T, i: number, x: Iterable<T>) => U; | ||
/** | ||
@@ -77,3 +77,3 @@ * Handle reduction of multiple values into a single value. | ||
declare type ReduceFunction<T, U> = (acc: U, v: T, i: number, x: Iterable<T>) => U; | ||
type ReduceFunction<T, U> = (acc: U, v: T, i: number, x: Iterable<T>) => U; | ||
/** | ||
@@ -86,3 +86,3 @@ * Handle ending of a combined iterable. | ||
declare type EndFunction = (dones: boolean[]) => boolean; | ||
type EndFunction = (dones: boolean[]) => boolean; | ||
/** | ||
@@ -89,0 +89,0 @@ * Check if value is an iterable. |
14
index.js
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
Object.getPrototypeOf(ASYNC_NOOP).constructor; | ||
Object.getPrototypeOf(GENERATOR_NOOP).constructor; | ||
async function ASYNC_NOOP(...args) { } | ||
function* GENERATOR_NOOP(...args) { } | ||
Object.getPrototypeOf(ASYNC_NOOP$1).constructor; | ||
Object.getPrototypeOf(GENERATOR_NOOP$1).constructor; | ||
async function ASYNC_NOOP$1(...args) { } | ||
function* GENERATOR_NOOP$1(...args) { } | ||
function IDENTITY(v) { | ||
@@ -20,2 +18,6 @@ return v; | ||
Object.getPrototypeOf(ASYNC_NOOP).constructor; | ||
Object.getPrototypeOf(GENERATOR_NOOP).constructor; | ||
async function ASYNC_NOOP(...args) { } | ||
function* GENERATOR_NOOP(...args) { } | ||
function from$(x) { | ||
@@ -22,0 +24,0 @@ return Array.isArray(x) ? x : [...x]; |
{ | ||
"name": "extra-iterable", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "A collection of functions for operating upon iterables.", | ||
@@ -178,15 +178,15 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@rollup/plugin-commonjs": "^22.0.2", | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"@types/jest": "^28.1.7", | ||
"extra-array": "^2.10.19", | ||
"extra-build": "^2.2.27", | ||
"extra-function": "^1.1.8", | ||
"extra-math": "^1.3.37", | ||
"@rollup/plugin-commonjs": "^23.0.2", | ||
"@rollup/plugin-node-resolve": "^15.0.1", | ||
"@types/jest": "^29.2.3", | ||
"extra-array": "^3.1.3", | ||
"extra-build": "^2.2.35", | ||
"extra-function": "^1.1.10", | ||
"extra-math": "^1.3.48", | ||
"extra-set": "^2.2.11", | ||
"jest": "^28.1.3", | ||
"jest": "^29.3.1", | ||
"rollup-plugin-cleanup": "^3.2.1", | ||
"rollup-plugin-dts": "^4.2.2", | ||
"ts-jest": "^28.0.8" | ||
"rollup-plugin-dts": "^5.0.0", | ||
"ts-jest": "^29.0.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
132710
3877