propsplit
v1.0.1
Published
Split props utility
Downloads
12
Readme
Split props utility
import propsplit from "propsplit";
const props = {
foo: "string",
bar: 1,
baz: true,
other: ["is", "array"],
another: { is: "object" },
};
const [foo, bar, baz, rest] = propsplit(props, ["foo"], ["bar"], ["baz"]);
MIT