Files
  • index.js
index.js
1
2
3
4
5
6
7
8
let isIt = "nope",
    itIs = ['it', 'is'];

Array.isArray(isIt) && isIt.push('yep');
Array.isArray(itIs) && itIs.push('indeed');

console.log('Is this an array?', isIt);
console.log('Is this an array?', itIs);
node v10.15.2 linux/amd64