The filtered data object with only the specified keys included. (T)
(BasaltError) - Throws an error if the data is null or undefined. (CORE_DATA_KEY_ERROR.DATA_IS_NULL)
(BasaltError) - Throws an error if the data is not a plain object. (CORE_DATA_KEY_ERROR.DATA_MUST_BE_OBJECT)
Filters the provided data by including only the specified keys. The resulting object will only have properties that match the keys provided. Properties with null or undefined values can optionally be excluded based on the 'excludeNullUndefined' flag.