UNPKG

@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.

34 lines (30 loc) 973 B
/*! * ==================================================== * Rzl Utils-JS. * ---------------------------------------------------- * Version: 3.11.0. * Author: Rizalvin Dwiky. * Repository: https://github.com/rzl-zone/utils-js. * ==================================================== */ import { isEmptyValue } from './chunk-UIAWUZ4H.js'; var isNonEmptyValue = (value, options = {}) => { return !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)); } export { isNonEmptyValue, isTypedArray };