@ts-common/string-map
Advanced tools
Comparing version 0.0.24 to 0.0.25
@@ -28,5 +28,5 @@ import { Tuple2 } from "@ts-common/tuple"; | ||
export declare const map: <S, R>(source: StringMap<S>, f: (v: S, k: string) => R) => StringMap<R>; | ||
export declare const merge: <T>(a: StringMap<T>, b: StringMap<T>) => StringMap<T>; | ||
export declare const merge: <T>(...a: StringMap<T>[]) => StringMap<T>; | ||
export declare const isMatch: <O, S>(object: StringMap<O>, source: StringMap<S>) => boolean; | ||
export declare const isEqual: <A, B>(a: StringMap<A>, b: StringMap<B>) => boolean; | ||
export declare const isEmpty: <T>(a: StringMap<T>) => boolean; |
@@ -47,3 +47,4 @@ "use strict"; | ||
exports.map = (source, f) => exports.stringMap(_.map(exports.entries(source), ([k, v]) => exports.entry(k, f(v, k)))); | ||
exports.merge = (a, b) => exports.stringMap(_.concat(exports.entries(a), exports.entries(b))); | ||
// tslint:disable-next-line:readonly-array | ||
exports.merge = (...a) => exports.stringMap(_.concat(..._.map(a, exports.entries))); | ||
// Performs a partial deep comparison between object and source to determine if object contains | ||
@@ -50,0 +51,0 @@ // equivalent property values. |
{ | ||
"name": "@ts-common/string-map", | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"description": "String Map", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
16820
85