UNPKG

@jsverse/transloco-keys-manager

Version:

Extract translatable keys from projects that uses Transloco

23 lines 670 B
import { existsSync, lstatSync } from 'fs'; export function isObject(value) { return value && typeof value === 'object' && !Array.isArray(value); } export function isFunction(value) { return typeof value === 'function'; } export function isNil(value) { return isUndefined(value) || value === null; } export function notNil(value) { return !isNil(value); } export function isDirectory(path) { return existsSync(path) && lstatSync(path).isDirectory(); } export function isString(value) { return value && typeof value === 'string'; } export function isUndefined(value) { return value === undefined; } //# sourceMappingURL=validators.utils.js.map