MCPcopy Create free account
hub / github.com/codecombat/codecombat / isEmptyOrUndefined

Function isEmptyOrUndefined

app/core/blocklyUtils.js:1288–1290  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1286 const keysToIgnoreWhenEmpty = ['variables', 'inputs']
1287
1288 function isEmptyOrUndefined (value) {
1289 return value === undefined || value === null || (_.isArray(value) && value.length === 0) || (_.isObject(value) && _.size(value) === 0)
1290 }
1291
1292 function isEqualIgnoringSomeKeys (obj1, obj2) {
1293 // If both are the same object or both are null/undefined, they are equal

Callers 1

isEqualIgnoringSomeKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected