/propsplit

Split props

Primary LanguageTypeScriptMIT LicenseMIT

license version size

lucide rocket propsplit

Split props utility

lucide code usage

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"]);

lucide scale license

MIT