@base-framework/base
Version:
This is a javascript framework.
27 lines (26 loc) • 620 B
TypeScript
/**
* Arrays
*
* This will contain methods for working with arrays.
*
* @module
* @name Arrays
*/
export class Arrays {
/**
* This will convert an object or collection into an array.
*
* @param {object} list
* @returns {array}
*/
static toArray(list: object): any[];
/**
* This will check if a value is found in an array.
*
* @param {array} array
* @param {string} element
* @param {number} [fromIndex]
* @returns {number} This will return -1 if not found.
*/
static inArray(array: any[], element: string, fromIndex?: number): number;
}