frontend/.pnpm-store/v3/files/b6/17439e7cff610b7ab4939794ff6adb100474c1386ec3cadedec534c3f83882229aaedce6cc3621dff6c1b8a8850ceac7969e6de6e823aef055037592c8161c

18 lines
528 B
Plaintext

"use strict";
var isFunction = require("../function/is-function")
, isObject = require("./is-object")
, isValue = require("./is-value");
module.exports = function (value) {
return (
(isValue(value) &&
typeof value.length === "number" &&
// Just checking ((typeof x === 'object') && (typeof x !== 'function'))
// won't work right for some cases, e.g.:
// type of instance of NodeList in Safari is a 'function'
((isObject(value) && !isFunction(value)) || typeof value === "string")) ||
false
);
};