@ts-common/iterator
Advanced tools
Comparing version 0.0.36 to 0.0.37
@@ -34,1 +34,3 @@ import { Tuple2 } from "@ts-common/tuple"; | ||
export declare const isEmpty: <T>(i: Iterable<T> | undefined) => boolean; | ||
export declare const join: (i: Iterable<string> | undefined, separator: string) => string; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -160,1 +160,6 @@ "use strict"; | ||
exports.isEmpty = (i) => exports.find(i, () => true) === undefined; | ||
exports.join = (i, separator) => { | ||
const result = exports.reduce(i, (a, b) => a + separator + b); | ||
return result === undefined ? "" : result; | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@ts-common/iterator", | ||
"version": "0.0.36", | ||
"version": "0.0.37", | ||
"description": "Iterator library for JavaScript and TypeScript", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"nyc": { | ||
@@ -26,3 +26,7 @@ "reporter": [ | ||
"files": [ | ||
"index.d.ts" | ||
"index.js", | ||
"index.d.ts", | ||
"index.d.ts.map", | ||
"index.js.map", | ||
"index.ts" | ||
], | ||
@@ -36,10 +40,10 @@ "author": "Sergey Shandar", | ||
"devDependencies": { | ||
"@types/chai": "^4.1.4", | ||
"@types/chai": "^4.1.6", | ||
"@types/mocha": "^5.2.5", | ||
"chai": "^4.1.2", | ||
"chai": "^4.2.0", | ||
"mocha": "^5.2.0", | ||
"nyc": "^12.0.2", | ||
"nyc": "^13.0.1", | ||
"tslint": "^5.11.0", | ||
"tslint-immutable": "^4.6.0", | ||
"typescript": "^3.0.1" | ||
"tslint-immutable": "^4.7.0", | ||
"typescript": "^3.1.1" | ||
}, | ||
@@ -46,0 +50,0 @@ "dependencies": { |
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
39548
8
417