MCPcopy Create free account
hub / github.com/shoutem/ui / getEmptyObjectKeys

Function getEmptyObjectKeys

html/services/getEmptyObjectKeys.js:1–11  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

1export default function getEmptyObjectKeys(obj) {
2 return Object.keys(obj).reduce((arr, key) => {
3 const val = String(obj[key]).trim();
4
5 if (!val) {
6 arr.push(key);
7 }
8
9 return arr;
10 }, []);
11}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected