houdini/app/javascript/legacy/common/class-object.js

9 lines
180 B
JavaScript
Raw Normal View History

2019-11-06 20:36:28 +00:00
// 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('.')))