Aller au contenu

utils/stripIconify

Ce contenu n’est pas encore disponible dans votre langue.

function stripIconify(params: {
icons: string[];
src: IconifyJSON;
}): IconifyJSON

Defined in: studiocms/packages/studiocms/src/utils/stripIconify.ts:11^

Strips an Iconify JSON object to only include specified icons.

An object containing the source Iconify JSON and an array of icon names to retain.

string[]

An array of icon names to retain in the stripped Iconify JSON.

IconifyJSON

The original Iconify JSON object.

IconifyJSON

A new Iconify JSON object containing only the specified icons.