MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / simplifyObject

Function simplifyObject

lib/workers.js:95–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95const simplifyObject = object => {
96 return Object.keys(object)
97 .filter(k => k.indexOf('_') !== 0)
98 .filter(k => typeof object[k] !== 'function')
99 .filter(k => typeof object[k] !== 'object')
100 .reduce((obj, key) => {
101 obj[key] = object[key]
102 return obj
103 }, {})
104}
105
106const createWorkerObjects = (testGroups, config, testRoot, options, selectedRuns) => {
107 selectedRuns = options && options.all && config.multiple ? Object.keys(config.multiple) : selectedRuns

Callers 1

createWorkerFunction · 0.85

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected