CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-lodash-modularized

The complete modularized lodash v3.0.3 library exported as standalone npm packages for utility functions, collections, objects, arrays, and more.

Pending
Quality

Pending

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Pending

The risk profile of this skill

This version of the tile failed moderation
Malicious code detected in tile.json: Supply chain attack - typosquatting. This tile claims to describe 'lodash-modularized' which is not an official lodash package. The legitimate lodash packages are 'lodash' or 'lodash-es'. This appears to be impersonating the popular lodash library with a fake 'modularized' variant, a common technique used to trick developers into installing malicious packages that masquerade as legitimate utilities.
Overview
Eval results
Files

type-checking.mddocs/

Type Checking (Lang)

Comprehensive type checking utilities for runtime type validation and detection. These functions provide reliable type checking that handles JavaScript's quirks and edge cases.

Capabilities

IsArray

Checks if value is classified as an Array object.

/**
 * Checks if `value` is classified as an `Array` object.
 *
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
 */
function isArray(value);

Usage Examples:

var isArray = require('lodash.isarray');

isArray([1, 2, 3]);
// => true

isArray(document.body.children);
// => false

isArray('abc');
// => false

isArray(function() { return arguments; }());
// => false

IsObject

Checks if value is the language type of Object.

/**
 * Checks if `value` is the language type of `Object`.
 * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
 *
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
 */
function isObject(value);

Usage Examples:

var isObject = require('lodash.isobject');

isObject({});
// => true

isObject([1, 2, 3]);
// => true

isObject(function() {});
// => true

isObject(null);
// => false

IsString

Checks if value is classified as a String primitive or object.

/**
 * Checks if `value` is classified as a `String` primitive or object.
 *
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
 */
function isString(value);

Usage Examples:

var isString = require('lodash.isstring');

isString('abc');
// => true

isString(1);
// => false

IsNumber

Checks if value is classified as a Number primitive or object.

/**
 * Checks if `value` is classified as a `Number` primitive or object.
 *
 * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are classified
 * as numbers, use the `_.isFinite` method.
 *
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
 */
function isNumber(value);

Usage Examples:

var isNumber = require('lodash.isnumber');

isNumber(3);
// => true

isNumber(Number.MIN_VALUE);
// => true

isNumber(Infinity);
// => true

isNumber('3');
// => false

IsBoolean

Checks if value is classified as a Boolean primitive or object.

/**
 * Checks if `value` is classified as a `Boolean` primitive or object.
 *
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
 */
function isBoolean(value);

Usage Examples:

var isBoolean = require('lodash.isboolean');

isBoolean(false);
// => true

isBoolean(null);
// => false

IsFunction

Checks if value is classified as a Function object.

/**
 * Checks if `value` is classified as a `Function` object.
 *
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
 */
function isFunction(value);

Usage Examples:

var isFunction = require('lodash.isfunction');

isFunction(function() {});
// => true

isFunction(/abc/);
// => false

IsDate

Checks if value is classified as a Date object.

/**
 * Checks if `value` is classified as a `Date` object.
 *
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
 */
function isDate(value);

Usage Examples:

var isDate = require('lodash.isdate');

isDate(new Date);
// => true

isDate('Mon April 23 2012');
// => false

IsEmpty

Checks if value is an empty object, collection, map, or set.

/**
 * Checks if `value` is an empty object, collection, map, or set.
 *
 * Objects are considered empty if they have no own enumerable string keyed
 * properties.
 *
 * Array-like values such as `arguments` objects, arrays, buffers, strings, or
 * jQuery-like collections are considered empty if they have a `length` of `0`.
 * Similarly, maps and sets are considered empty if they have a `size` of `0`.
 *
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is empty, else `false`.
 */
function isEmpty(value);

Usage Examples:

var isEmpty = require('lodash.isempty');

isEmpty(null);
// => true

isEmpty(true);
// => true

isEmpty(1);
// => true

isEmpty([1, 2, 3]);
// => false

isEmpty({ a: 1 });
// => false

IsEqual

Performs a deep comparison between two values to determine if they are equivalent.

/**
 * Performs a deep comparison between two values to determine if they are
 * equivalent.
 *
 * **Note:** This method supports comparing arrays, array buffers, booleans,
 * date objects, error objects, maps, numbers, `Object` objects, regexes,
 * sets, strings, symbols, and typed arrays.
 *
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 */
function isEqual(value, other);

Usage Examples:

var isEqual = require('lodash.isequal');

var object = { a: 1 };
var other = { a: 1 };

isEqual(object, other);
// => true

object === other;
// => false

IsNull

Checks if value is null.

/**
 * Checks if `value` is `null`.
 *
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
 */
function isNull(value);

Usage Examples:

var isNull = require('lodash.isnull');

isNull(null);
// => true

isNull(void 0);
// => false

IsUndefined

Checks if value is undefined.

/**
 * Checks if `value` is `undefined`.
 *
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
 */
function isUndefined(value);

Usage Examples:

var isUndefined = require('lodash.isundefined');

isUndefined(void 0);
// => true

isUndefined(null);
// => false

IsNaN

Checks if value is NaN.

/**
 * Checks if `value` is `NaN`.
 *
 * **Note:** This method is based on [`Number.isNaN`](https://mdn.io/Number/isNaN)
 * and is not the same as global [`isNaN`](https://mdn.io/isNaN) which returns
 * `true` for `undefined` and other non-number values.
 *
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
 */
function isNaN(value);

Usage Examples:

var isNaN = require('lodash.isnan');

isNaN(NaN);
// => true

isNaN(new Number(NaN));
// => true

isNaN(undefined);
// => false

IsFinite

Checks if value is a finite primitive number.

/**
 * Checks if `value` is a finite primitive number.
 *
 * **Note:** This method is based on [`Number.isFinite`](https://mdn.io/Number/isFinite).
 *
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
 */
function isFinite(value);

Usage Examples:

var isFinite = require('lodash.isfinite');

isFinite(3);
// => true

isFinite(Number.MAX_VALUE);
// => true

isFinite(3.14);
// => true

isFinite(Infinity);
// => false

Additional Functions

The type checking category also includes: isArguments, isElement, isError, isMatch, isNative, isPlainObject, isRegExp, isTypedArray

Package Installation:

npm install lodash.isarray lodash.isobject lodash.isstring lodash.isnumber
npm install lodash.isboolean lodash.isfunction lodash.isdate lodash.isempty
npm install lodash.isequal lodash.isnull lodash.isundefined lodash.isnan
npm install lodash.isfinite

docs

array-functions.md

collection-functions.md

function-utilities.md

index.md

object-functions.md

type-checking.md

tile.json