UNPKG

@feature-sliced/eslint-config

Version:

🍰 Lint feature-sliced concepts by existing eslint plugins

14 lines (12 loc) 358 B
const isArray = (val) => Array.isArray(val); const isObj = (val) => typeof val === "object" && val !== null; const isString = (val) => typeof val === "string"; const isNumber = (val) => typeof val === "number"; const isOptional = (val) => val === undefined; module.exports.typesLib = { isArray, isObj, isString, isNumber, isOptional, };