UNPKG

@ckeditor/ckeditor5-integrations-common

Version:

This package implements common utility modules for integration projects.

28 lines (27 loc) 764 B
/** * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ /** * Removes null and undefined values from an object. * * @param obj Object to filter. * @returns Object with filtered values. * @example * ```ts * const obj = { * a: 1, * b: null, * c: undefined * }; * * const filteredObj = filterBlankObjectValues( obj ); * // filteredObj is { a: 1 } * ``` */ export declare function filterBlankObjectValues<T>(obj: Record<string, T>): FilterBlankRecordProperties<T>; /** * Removes null and undefined values from an object. */ type FilterBlankRecordProperties<T> = Record<string, Exclude<T, null | undefined>>; export {};