Plato on Github
Report Home
src\components\types.js
Maintainability
93.50
Lines of code
14
Difficulty
9.14
Estimated Errors
0.21
Function weight
By Complexity
By SLOC
import { either, isNil, allPass, complement, isEmpty, where, pipe, values, any, propEq, tap, both, flatten, map, prop, flip, all, identity, filter, equals, cond, T } from "ramda" import { isFunction, isString } from "../utils" export const isNotEmpty = complement(isEmpty); export const isComponent = isFunction; export const isSettings = T; // dont want to go through the trouble of typing this as it is notoriously shapeshifting export const isSources = T; export function isEventName (x){ return both(isString, isNotEmpty)(x); }