28 lines
667 B
JavaScript
28 lines
667 B
JavaScript
var is_array = Array.isArray;
|
|
var index_of = Array.prototype.indexOf;
|
|
var array_from = Array.from;
|
|
var define_property = Object.defineProperty;
|
|
var get_descriptor = Object.getOwnPropertyDescriptor;
|
|
const noop = () => {
|
|
};
|
|
function equals(value) {
|
|
return value === this.v;
|
|
}
|
|
function safe_not_equal(a, b) {
|
|
return a != a ? b == b : a !== b || a !== null && typeof a === "object" || typeof a === "function";
|
|
}
|
|
function safe_equals(value) {
|
|
return !safe_not_equal(value, this.v);
|
|
}
|
|
export {
|
|
is_array as a,
|
|
array_from as b,
|
|
safe_not_equal as c,
|
|
define_property as d,
|
|
equals as e,
|
|
get_descriptor as g,
|
|
index_of as i,
|
|
noop as n,
|
|
safe_equals as s
|
|
};
|