UNPKG

@arnosaine/is

Version:

Feature Flags, Roles and Permissions-based rendering, A/B Testing, Experimental Features, and more in React.

8 lines 246 B
// Convert an array of strings to an object with true values export function toBooleanValues(strings) { return (strings ?? []).reduce((acc, key) => { acc[key] = true; return acc; }, {}); } //# sourceMappingURL=utils.js.map