UNPKG

css-variants

Version:

A lightweight, flexible API for managing CSS class variants.

13 lines 370 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mergeProps = mergeProps; function mergeProps(defaultProps, props) { const newObj = { ...defaultProps }; for (const k in props) { if (props[k] !== undefined) { newObj[k] = props[k]; } } return newObj; } //# sourceMappingURL=merge-props.js.map