1.0.1 • Published 8 months ago

propsplit v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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

1.0.1

8 months ago

1.0.0

9 months ago

1.0.0-0

9 months ago