luda
Version:
A library helps to build cross-framework UI components.
15 lines (11 loc) • 342 B
text/coffeescript
import luda from '../base/luda.coffee'
import Type from '../base/type.coffee'
luda.include
prop: (prop, value) ->
return unless prop
if Type.isString prop
return [0] and [0][prop] if arguments.length < 2
.forEach (el) -> el[prop] = value
return this
key, val for key, val of prop
this