콘텐츠로 이동

utils/stripIconify

이 콘텐츠는 아직 번역되지 않았습니다.

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.