@thisisagile/easy
Advanced tools
Comparing version 1.14.8 to 1.14.9
@@ -11,2 +11,3 @@ import { GetProperty } from './Constructor'; | ||
mapDefined: <U>(f: (value: T, index: number, array: T[]) => U, params?: unknown) => List<U>; | ||
distinct: () => List<T>; | ||
filter: (p: (value: T, index: number, array: T[]) => unknown, params?: unknown) => List<T>; | ||
@@ -13,0 +14,0 @@ concat: (...items: (T | ConcatArray<T>)[]) => List<T>; |
@@ -19,2 +19,3 @@ "use strict"; | ||
this.mapDefined = (f, params) => this.map(f, params).filter(i => Is_1.isDefined(i)); | ||
this.distinct = () => this.filter((i, index) => this.indexOf(i) === index); | ||
this.filter = (p, params) => super.filter(p, params); | ||
@@ -21,0 +22,0 @@ this.concat = (...items) => super.concat(...items); |
{ | ||
"name": "@thisisagile/easy", | ||
"version": "1.14.8", | ||
"version": "1.14.9", | ||
"description": "Straightforward library for building domain-driven microservice architectures", | ||
@@ -5,0 +5,0 @@ "author": "Sander Hoogendoorn", |
@@ -22,2 +22,4 @@ import { toArray } from './Array'; | ||
distinct = (): List<T> => this.filter((i, index) => this.indexOf(i) === index); | ||
filter = (p: (value: T, index: number, array: T[]) => unknown, params?: unknown): List<T> => super.filter(p, params) as List<T>; | ||
@@ -24,0 +26,0 @@ |
Sorry, the diff of this file is not supported yet
151280
2309