@thi.ng/transducers
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="1.5.0"></a> | ||
# [1.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@1.4.0...@thi.ng/transducers@1.5.0) (2018-02-26) | ||
### Features | ||
* **transducers:** add keys()/vals() iterators, refactor pairs() ([9824844](https://github.com/thi-ng/umbrella/commit/9824844)) | ||
<a name="1.4.0"></a> | ||
@@ -8,0 +19,0 @@ # [1.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@1.3.0...@thi.ng/transducers@1.4.0) (2018-02-23) |
@@ -105,2 +105,3 @@ export * from "./api"; | ||
export * from "./iter/iterate"; | ||
export * from "./iter/keys"; | ||
export * from "./iter/pairs"; | ||
@@ -114,1 +115,2 @@ export * from "./iter/range"; | ||
export * from "./iter/tuples"; | ||
export * from "./iter/vals"; |
@@ -110,2 +110,3 @@ "use strict"; | ||
__export(require("./iter/iterate")); | ||
__export(require("./iter/keys")); | ||
__export(require("./iter/pairs")); | ||
@@ -119,1 +120,2 @@ __export(require("./iter/range")); | ||
__export(require("./iter/tuples")); | ||
__export(require("./iter/vals")); |
@@ -1,1 +0,2 @@ | ||
export declare function pairs(x: any): IterableIterator<[string, any]>; | ||
import { IObjectOf } from "@thi.ng/api/api"; | ||
export declare function pairs<T>(x: IObjectOf<T>): IterableIterator<[string, T]>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function* pairs(x) { | ||
for (let k of Object.keys(x)) { | ||
yield [k, x[k]]; | ||
for (let k in x) { | ||
if (x.hasOwnProperty(k)) { | ||
yield [k, x[k]]; | ||
} | ||
} | ||
} | ||
exports.pairs = pairs; |
{ | ||
"name": "@thi.ng/transducers", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "Lightweight transducer implementations for ES6 / TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
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
157329
236
3401
60