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