@iota-pico/core
Version:
IOTA Pico Framework Core
25 lines (24 loc) • 726 B
TypeScript
/**
* Array helper methods.
*/
export declare class ArrayHelper {
/**
* Is the value an array.
* @param value Object to test.
* @returns True if the value is an array.
*/
static isArray(value: any): boolean;
/**
* Is the value a empty array.
* @param value Object to test.
* @returns True if the value is a empty array.
*/
static isEmpty(value: any): boolean;
/**
* Is the value a non empty array of specific type.
* @param value Object to test.
* @param type The type of the object
* @returns True if the value is a non empty array of a specific type.
*/
static isTyped(value: any, type: Function): boolean;
}