0

Given an input value, return true if the value is an Object intended as a collection, false if otherwise.

In JavaScript, how can we decipher if a value is an Object, but not null, not an Array, not a Date - all of these will return 'object' if used with typeof.

function isObject(value) {
//code here//
}

0 Answers0