UNPKG

@base-framework/base

Version:

This is a javascript framework.

27 lines (26 loc) 640 B
/** * 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<any>} */ static toArray(list: object): Array<any>; /** * This will check if a value is found in an array. * * @param {Array<any>} array * @param {string} element * @param {number} [fromIndex] * @returns {number} This will return -1 if not found. */ static inArray(array: Array<any>, element: string, fromIndex?: number): number; }