UNPKG

@exadel/esl

Version:

Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components

7 lines (6 loc) 328 B
/** Function that does nothing */ export const noop = () => undefined; /** Function that returns the first argument */ export const identity = (arg) => arg; /** Resolves {@link PropertyProvider} function to the value */ export const resolveProperty = (val, origin) => typeof val === 'function' ? val.call(origin, origin) : val;