MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / makeEmptyFunction

Function makeEmptyFunction

code/controlled-uncontrolled/public/app.js:244–248  ·  view source on GitHub ↗

* Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * *

(arg)

Source from the content-addressed store, hash-verified

242 */
243
244function makeEmptyFunction(arg) {
245 return function () {
246 return arg;
247 };
248}
249
250/**
251 * This function accepts and discards inputs; it has no side effects. This is

Callers 1

app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected