Array.isArray to isArray

Array.isNotEmpty to isNonEmptyArray
This commit is contained in:
djmaze 2021-03-16 16:49:14 +01:00
parent 986b8f056b
commit 0b64083543
30 changed files with 82 additions and 69 deletions

View file

@ -1,3 +1,4 @@
import { isArray } from 'Common/Utils';
export class AbstractCollectionModel extends Array
{
@ -27,7 +28,7 @@ export class AbstractCollectionModel extends Array
// json[@Count]
json = json['@Collection'];
}
if (Array.isArray(json)) {
if (isArray(json)) {
json.forEach(item => {
item && itemCallback && (item = itemCallback(item, result));
item && result.push(item);