| Total Complexity | 3 |
| Complexity/F | 1.5 |
| Lines of Code | 13 |
| Function Count | 2 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | export const _isArray = value => { |
||
|
|
|||
| 2 | return (value !== null && |
||
| 3 | value.length >= 0 && |
||
| 4 | Object.prototype.toString.call(value) === '[object Array]'); |
||
| 5 | }; |
||
| 6 | |||
| 7 | export const _pop = array => { |
||
| 8 | let newarray = []; |
||
| 9 | for(let i = 0; i < array.length-1; i++){ |
||
| 10 | newarray[i] = array[i]; |
||
| 11 | } |
||
| 12 | return newarray; |
||
| 13 | }; |
||
| 14 |