@rzl-zone/utils-js
Version:
A modern, lightweight set of JavaScript utility functions with TypeScript support for everyday development, crafted to enhance code readability and maintainability.
37 lines (32 loc) • 1.05 kB
JavaScript
/*!
* ====================================================
* Rzl Utils-JS.
* ----------------------------------------------------
* Version: 3.11.0.
* Author: Rizalvin Dwiky.
* Repository: https://github.com/rzl-zone/utils-js.
* ====================================================
*/
;
var chunkRMP7VMPB_cjs = require('./chunk-RMP7VMPB.cjs');
var isNonEmptyValue = (value, options = {}) => {
return !chunkRMP7VMPB_cjs.isEmptyValue(value, options);
};
var typedArrayTags = /* @__PURE__ */ new Set([
"[object Int8Array]",
"[object Uint8Array]",
"[object Uint8ClampedArray]",
"[object Int16Array]",
"[object Uint16Array]",
"[object Int32Array]",
"[object Uint32Array]",
"[object Float32Array]",
"[object Float64Array]",
"[object BigInt64Array]",
"[object BigUint64Array]"
]);
function isTypedArray(value) {
return value != null && typeof value === "object" && typedArrayTags.has(Object.prototype.toString.call(value));
}
exports.isNonEmptyValue = isNonEmptyValue;
exports.isTypedArray = isTypedArray;