0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-27 22:59:51 -05:00
verdaccio/packages/utils/src/replace-lodash.ts
Juan Picado 30875acc70
feat: partially implement user endpoints with fastify (part1) (#2301)
Partially implemented (wip)

- requires follow up for proper token validation
-  no test included (still experimental)
-  types refactoring required, still need alignment with other modules
2021-10-26 22:03:06 +02:00

7 lines
190 B
TypeScript

export function isNil(value: any): boolean {
return value === null || typeof value === 'undefined';
}
export function isFunction(value): boolean {
return typeof value === 'function';
}