ripple 0.2.32 → 0.2.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1182,3 +1182,17 @@ export function use_prop() {
|
|
|
1182
1182
|
export function fallback(value, fallback) {
|
|
1183
1183
|
return value === undefined ? fallback : value;
|
|
1184
1184
|
}
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* @param {Record<string, unknown>} obj
|
|
1188
|
+
* @param {string[]} keys
|
|
1189
|
+
* @returns {Record<string, unknown>}
|
|
1190
|
+
*/
|
|
1191
|
+
export function exclude_from_object(obj, keys) {
|
|
1192
|
+
obj = { ...obj };
|
|
1193
|
+
let key;
|
|
1194
|
+
for (key of keys) {
|
|
1195
|
+
delete obj[key];
|
|
1196
|
+
}
|
|
1197
|
+
return obj;
|
|
1198
|
+
}
|