MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / wrap

Function wrap

lib/web/jshint.js:9738–9741  ·  view source on GitHub ↗

* Creates a function that provides `value` to the wrapper function as its * first argument. Any additional arguments provided to the function are * appended to those provided to the wrapper function. The wrapper is invoked * with the `this` binding of the created function. *

(value, wrapper)

Source from the content-addressed store, hash-verified

9736 * // => '<p>fred, barney, &amp; pebbles</p>'
9737 */
9738 function wrap(value, wrapper) {
9739 wrapper = wrapper == null ? identity : wrapper;
9740 return createWrapper(wrapper, PARTIAL_FLAG, null, [value], []);
9741 }
9742
9743 /*------------------------------------------------------------------------*/
9744

Callers 7

supportMethod · 0.50
supportMethod · 0.50
supportMethod · 0.50
createGlBufferViewMethod · 0.50
updateVertexAttributeMethod · 0.50
createGlTextureMethod · 0.50
supportMethod · 0.50

Calls 1

createWrapperFunction · 0.85

Tested by

no test coverage detected