/**
* Checks if a value is an array.
* @function
* @param {*} value - The value to check.
* @returns {boolean} Returns true if the value is an array, else false.
*/
const isArray = Array.isArray
/**
* Checks if a value is a BigInt.
* @function
* @param {*} value - The value to check.
* @returns {boolean} Returns true if the value is a BigInt, else false.
*/
const isBigInt = value => typeof value === 'bigint'
/**
* Checks if a value is a boolean.
* @function
* @param {*} value - The value to check.
* @returns {boolean} Returns true if the value is a boolean, else false.
*/
const isBoolean = value => typeof value === 'boolean'
/**
* Checks if a value is a function.
* @function
* @param {*} value - The value to check.
* @returns {boolean} Returns true if the value is a function, else false.
*/
const isFunction = value => typeof value === 'function'
/**
* Checks if a value is an integer.
* @function
* @param {*} value - The value to check.
* @returns {boolean} Returns true if the value is an integer, else false.
*/
const isInteger = value => Number.isInteger(value)
/**
* Checks if a value is NaN (Not a Number).
* @function
* @param {*} value - The value to check.
* @returns {boolean} Returns true if the value is NaN, else false.
*/
const isNaN = value => Number.isNaN(value)
/**
* Checks if a value is numeric.
* @function
* @param {*} value - The value to check.
* @returns {boolean} Returns true if the value is numeric, else false.
*/
const isNumeric = value => typeof value === 'number' && !Number.isNaN(value)
/**
* Checks if a value is an object.
* @function
* @param {*} value - The value to check.
* @returns {boolean} Returns true if the value is an object, else false.
*/
const isObject = value => value !== null && typeof value === 'object' && !Array.isArray(value)
/**
* Checks if a value is a string.
* @function
* @param {*} value - The value to check.
* @returns {boolean} Returns true if the value is a string,...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.