@ts-common/string-map
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -27,3 +27,4 @@ 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 isMatch: <O, S>(object: StringMap<O>, source: StringMap<S>) => boolean; | ||
export declare const isEqual: <A, B>(a: StringMap<A>, b: StringMap<B>) => boolean; |
@@ -38,2 +38,3 @@ "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))); | ||
// Performs a partial deep comparison between object and source to determine if object contains | ||
@@ -40,0 +41,0 @@ // equivalent property values. |
{ | ||
"name": "@ts-common/string-map", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "String Map", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
16201
72