MCPcopy Index your code
hub / github.com/reactjs/react-rails / parseAsObject

Function parseAsObject

lib/assets/javascripts/JSXTransformer.js:12240–12247  ·  view source on GitHub ↗

* Same as parse but returns an object of prop: value instead of array of paris * If a property appers more than once the last one will be returned * * @param {String} contents * @return {Object}

(docblock)

Source from the content-addressed store, hash-verified

12238 * @return {Object}
12239 */
12240function parseAsObject(docblock) {
12241 var pairs = parse(docblock);
12242 var result = {};
12243 for (var i = 0; i < pairs.length; i++) {
12244 result[pairs[i][0]] = pairs[i][1];
12245 }
12246 return result;
12247}
12248
12249
12250exports.extract = extract;

Callers

nothing calls this directly

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected