UNPKG
peekdepth
Version:
latest (2.0.1)
2.0.1
2.0.0
1.0.1
Get the max depth of a multi-dimensional array
github.com/ecman/peekdepth
ecman/peekdepth
peekdepth
/
test
/
script
/
eslint.js
17 lines
(13 loc)
•
291 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
'use strict'
;
init
();
function
init
(
) {
if
(
skipEslint
()) {
console
.
info
(
'Skipping eslint with this node version:'
, process.
versions
.
node
,
"\n"
); }
else
{
require
(
'eslint'
); } }
function
skipEslint
(
) {
let
major = process.
versions
.
node
[
0
];
return
parseInt
(major) <
4
; }