utils

judge

isNull(value)

import { judge } from '@ataola/utils';
console.log(judge.isNull(null)) // true

isString(value)

import { judge } from '@ataola/utils';
console.log(judge.isString('peace world')) // true

isNumber(value)

import { judge } from '@ataola/utils';
console.log(judge.isNumber(2020)) // true

isSymbol(value)

import { judge } from '@ataola/utils';
const foo = Symbol('foo');
console.log(judge.isSymbol(foo)) // true

isUndefined(value)

import { judge } from '@ataola/utils';
console.log(judge.sUndefined(undefined)) // true

isBoolean(value)

import { judge } from '@ataola/utils';
console.log(judge.isBoolean(true)) // true

isBigInt(value)

import { judge } from '@ataola/utils';
console.log(judge.isBigInt(2020n)) // true

isFunction(value)

import { judge } from '@ataola/utils';
console.log(judge.isFunction(() => {}))) // true

isArray(value)

import { judge } from '@ataola/utils';
console.log(judge.isArray([])) // true

isObject(value)

import { judge } from '@ataola/utils';
console.log(judge.isObject({})) // true

isPrototype(value)

import { judge } from '@ataola/utils';
console.log(judge.isPrototype(Date.prototype)) // true

isMap(value)

import { judge } from '@ataola/utils';
const map = new Map();
console.log(judge.isMap(map)) // true

isWeakMap(value)

import { judge } from '@ataola/utils';
const weakMap = new WeakMap();
console.log(judge.isWeakMap(weakMap)) // true

isSet(value)

import { judge } from '@ataola/utils';
const set = new Set();
console.log(judge.isSet(set)) // true

isWeakSet(value)

import { judge } from '@ataola/utils';
const weakSet = new WeakSet();
console.log(judge.isWeakSet(weakSet)) // true

isError(value)

import { judge } from '@ataola/utils';
console.log(judge.isError(new Error())) // true

isScreenXS

import { judge } from '@ataola/utils';
console.log(judge.isScreenXS()) // false

isScreenSM()

import { judge } from '@ataola/utils';
console.log(judge.isScreenSM()) // true

isScreenMD()

import { judge } from '@ataola/utils';
console.log(judge.isScreenMD()) // true

isScreenLG()

import { judge } from '@ataola/utils';
console.log(judge.isScreenLG()) // true

isScreenXL()

import { judge } from '@ataola/utils';
console.log(judge.isScreenXL()) // true

isEmpty(value)

import { judge } from '@ataola/utils';
console.log(judge.isEmpty(null)) // true

isDate(value)

import { judge } from '@ataola/utils';
console.log(judge.isDate(Date.now())) // true