MCPcopy Index your code
hub / github.com/facebook/react / objectValues

Function objectValues

scripts/error-codes/__tests__/invertObject-test.js:11–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9const invertObject = require('../invertObject');
10
11const objectValues = target => Object.keys(target).map(key => target[key]);
12
13describe('invertObject', () => {
14 it('should return an empty object for an empty input', () => {

Callers 1

Calls 2

keysMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected