MCPcopy Create free account
hub / github.com/danielstocks/react-sortable / mapChildren

Function mapChildren

bundle.js:2192–2199  ·  view source on GitHub ↗

* Maps children that are typically specified as `props.children`. * * See https://facebook.github.io/react/docs/react-api.html#react.children.map * * The provided mapFunction(child, key, index) will be called for each * leaf child. * * @param {?*} children Children

(children, func, context)

Source from the content-addressed store, hash-verified

2190 * @return {object} Object containing the ordered map of results.
2191 */
2192 function mapChildren(children, func, context) {
2193 if (children == null) {
2194 return children;
2195 }
2196 var result = [];
2197 mapIntoWithKeyPrefixInternal(children, result, null, func, context);
2198 return result;
2199 }
2200
2201 /**
2202 * Count the number of children that are typically specified as

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected