Comparing version 0.4.1 to 0.4.2
{ | ||
"name": "ng2-pipes", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"author": "Dan Revah", | ||
@@ -5,0 +5,0 @@ "description": "Useful angular2 pipes", |
@@ -389,3 +389,3 @@ # Angular2 Pipes | ||
Returns boolean value if every elements of the array fits the predicate | ||
Returns true if every elements of the array fits the predicate otherwise false | ||
@@ -411,3 +411,3 @@ Api: `array | every: predicate` | ||
Returns boolean value if some elements of the array fits the predicate | ||
Returns true if some elements of the array fits the predicate otherwise false | ||
@@ -414,0 +414,0 @@ Api: `array | some: predicate` |
@@ -15,3 +15,3 @@ import {PipeTransform, Pipe, Injectable} from '@angular/core'; | ||
let shuffled = Array.from(arr); | ||
let shuffled = [...arr]; | ||
for (let i = 0, n = arr.length - 1, l = n - 1; i < l; ++i) { | ||
@@ -18,0 +18,0 @@ const j = Math.floor(Math.random() * (n - i + 1)) + i; |
233766