function isArray(val) {
  return objToString.call(val) === '[object Array]';
}
Check if a value is an array.

@api private
@param {*} val The value to test.
@return {boolean} true if the value is a boolean, otherwise false.