dleitee /
strman
| 1 | export const _isArray = value => { |
||
|
0 ignored issues
–
show
Unused Code
introduced
by
Loading history...
|
|||
| 2 | return (value !== null && |
||
| 3 | value.length >= 0 && |
||
| 4 | Object.prototype.toString.call(value) === '[object Array]'); |
||
| 5 | }; |
||
| 6 | |||
| 7 | export const _pop = array => { |
||
|
0 ignored issues
–
show
|
|||
| 8 | let newarray = []; |
||
| 9 | for(let i = 0; i < array.length-1; i++){ |
||
| 10 | newarray[i] = array[i]; |
||
| 11 | } |
||
| 12 | return newarray; |
||
| 13 | }; |
||
| 14 |