Commit ff2ff963 authored by Mike John Herter's avatar Mike John Herter

Add new file

parent fbe31b9c
function isArray(args) {
if (Array.isArray(args)) {
return true
}
else {
return false
}
}
console.log(isArray('hello')); // => false
console.log(isArray(['hello'])); // => true
console.log(isArray([2, {}, 10])); // => true
console.log(isArray({ a: 2 })); // => false
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment