• File: index.js
  • Full Path: /var/www/nodejs/daily_store_reports_nodejs/node_modules/is-arrayish/index.js
  • Date Modified: 02/04/2023 9:31 PM
  • File size: 318 bytes
  • MIME-type: text/plain
  • Charset: utf-8
module.exports = function isArrayish(obj) {
	if (!obj || typeof obj === 'string') {
		return false;
	}

	return obj instanceof Array || Array.isArray(obj) ||
		(obj.length >= 0 && (obj.splice instanceof Function ||
			(Object.getOwnPropertyDescriptor(obj, (obj.length - 1)) && obj.constructor.name !== 'String')));
};