react-carousel-query
Version:
A infinite carousel component made with react that handles the pagination for you.
29 lines (23 loc) • 494 B
JavaScript
var xtend = require('xtend')
var Schema = require('./schema')
module.exports = merge
function merge(definitions) {
var length = definitions.length
var property = []
var normal = []
var index = -1
var info
var space
while (++index < length) {
info = definitions[index]
property.push(info.property)
normal.push(info.normal)
space = info.space
}
return new Schema(
xtend.apply(null, property),
xtend.apply(null, normal),
space
)
}