
package.dist.utils.create-split-props.cjs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of react Show documentation
Show all versions of react Show documentation
A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.
The newest version!
'use client';
'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const createSplitProps = () => (props, keys) => keys.reduce(
(previousValue, currentValue) => {
const [target, source] = previousValue;
const key = currentValue;
if (source[key] !== void 0) {
target[key] = source[key];
}
delete source[key];
return [target, source];
},
[{}, { ...props }]
);
exports.createSplitProps = createSplitProps;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy