Issues (49)

src/lib/array.js (2 issues)

1
export const _isArray = value => {
0 ignored issues
show
The constant _isArray seems to be never used. Consider removing it.
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
The constant _pop seems to be never used. Consider removing it.
Loading history...
8
    let newarray = [];
9
    for(let i = 0; i < array.length-1; i++){
10
        newarray[i] = array[i];
11
    }
12
    return newarray;
13
};
14