UNPKG

@design-automation/mobius-inline-funcs

Version:
12 lines 339 B
/** * Returns a shallow copy of the list. * \n * A shallow copy means that changing primitive entities (e.g. numbers, strings) in the * copied list will not affect the original list. * * @param list The list. * @returns The copy of the list. */ export function listCopy(list: any[]): any[] { return list.slice(); }