src/lib/array.js   A
last analyzed

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 13
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 0
wmc 3
nc 1
mnd 1
bc 3
fnc 2
dl 0
loc 13
rs 10
bpm 1.5
cpm 1.5
noi 2
c 1
b 0
f 1
1
export const _isArray = value => {
0 ignored issues
show
Unused Code introduced by
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
Unused Code introduced by
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