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

Function extend

lib/assets/javascripts/JSXTransformer.js:9780–9798  ·  view source on GitHub ↗
(object, properties)

Source from the content-addressed store, hash-verified

9778 // This is used to modify the delegate.
9779
9780 function extend(object, properties) {
9781 var entry, result = {};
9782
9783 for (entry in object) {
9784 /* istanbul ignore else */
9785 if (object.hasOwnProperty(entry)) {
9786 result[entry] = object[entry];
9787 }
9788 }
9789
9790 for (entry in properties) {
9791 /* istanbul ignore else */
9792 if (properties.hasOwnProperty(entry)) {
9793 result[entry] = properties[entry];
9794 }
9795 }
9796
9797 return result;
9798 }
9799
9800 function tokenize(code, options) {
9801 var toString,

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected