(arr: any[], filter: number[])
| 15 | } |
| 16 | |
| 17 | export function filterArray(arr: any[], filter: number[]): any[] { |
| 18 | const rtn: any[] = []; |
| 19 | for (let i = 0; i < arr.length; i++) { |
| 20 | if (filter.indexOf(i) > -1) { |
| 21 | rtn.push(arr[i]); |
| 22 | } |
| 23 | } |
| 24 | return rtn; |
| 25 | } |
| 26 | |
| 27 | export const trimLeft = function trimLeftNative(str: string) { |
| 28 | return str.trimStart(); |
no outgoing calls
no test coverage detected