houdini/app/javascript/legacy/common/class-object.js
2020-04-23 14:09:14 -05:00

8 lines
180 B
JavaScript

// License: LGPL-3.0-or-later
const R = require('ramda')
module.exports = (classes='') => R.reduce(
(a, b) => {a[b] = true; return a}
, {}
, R.drop(1, classes.split('.')))