space-lift
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -8,4 +8,8 @@ import { ArrayOps } from '../lift'; | ||
/** | ||
* Filters this array by aplying a predicate to all items. | ||
* Filters this array by aplying a predicate to all items and refine its type. | ||
*/ | ||
export declare function filter<A, T extends A>(this: ArrayOps<A>, predicate: (item: A, index: number) => item is T): ArrayOps<T>; | ||
/** | ||
* Filters this array by aplying a predicate. | ||
*/ | ||
export declare function filter<A>(this: ArrayOps<A>, predicate: (item: A, index: number) => boolean): ArrayOps<A>; |
"use strict"; | ||
exports.__esModule = true; | ||
var lift_1 = require("../lift"); | ||
/** | ||
* Filters this array by aplying a predicate to all items. | ||
*/ | ||
function filter(predicate) { | ||
@@ -8,0 +5,0 @@ var arr = this.value(), result = []; |
@@ -8,4 +8,8 @@ import { ArrayOps } from '../lift'; | ||
/** | ||
* Filters this array by aplying a predicate to all items. | ||
* Filters this array by aplying a predicate to all items and refine its type. | ||
*/ | ||
export declare function filter<A, T extends A>(this: ArrayOps<A>, predicate: (item: A, index: number) => item is T): ArrayOps<T>; | ||
/** | ||
* Filters this array by aplying a predicate. | ||
*/ | ||
export declare function filter<A>(this: ArrayOps<A>, predicate: (item: A, index: number) => boolean): ArrayOps<A>; |
import { ArrayOps } from '../lift'; | ||
/** | ||
* Filters this array by aplying a predicate to all items. | ||
*/ | ||
export function filter(predicate) { | ||
@@ -6,0 +3,0 @@ var arr = this.value(), result = []; |
{ | ||
"name": "space-lift", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "Idiomatic TS array, object utils, Option, Result monads", | ||
@@ -5,0 +5,0 @@ |
182051
4674