@design-automation/mobius-inline-funcs
Version:
Mobius Spatial Information Model
12 lines • 339 B
text/typescript
/**
* 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();
}