@ts-common/iterator
Advanced tools
Comparing version 0.0.34 to 0.0.35
@@ -32,1 +32,2 @@ import { Tuple2 } from "@ts-common/tuple"; | ||
export declare const toArray: <T>(i: Iterable<T> | undefined) => ReadonlyArray<T>; | ||
export declare const reverse: <T>(i: Iterable<T> | undefined) => ReadonlyArray<T>; |
@@ -158,1 +158,2 @@ "use strict"; | ||
exports.toArray = (i) => i === undefined ? [] : Array.from(i); | ||
exports.reverse = (i) => exports.fold(i, (a, b) => [b, ...a], new Array()); |
{ | ||
"name": "@ts-common/iterator", | ||
"version": "0.0.34", | ||
"version": "0.0.35", | ||
"description": "Iterator library for JavaScript and TypeScript", | ||
@@ -36,3 +36,3 @@ "main": "index.js", | ||
"@types/chai": "^4.1.4", | ||
"@types/mocha": "^5.2.4", | ||
"@types/mocha": "^5.2.5", | ||
"chai": "^4.1.2", | ||
@@ -39,0 +39,0 @@ "mocha": "^5.2.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22334
190