e29896c2a3a7edde63b7904881a458fb.json 2.37 KB
{"ast":null,"code":"\"use strict\";function makeEmptyFunction(arg){return function(){return arg;};}var emptyFunction=function emptyFunction(){};emptyFunction.thatReturns=makeEmptyFunction;emptyFunction.thatReturnsFalse=makeEmptyFunction(false);emptyFunction.thatReturnsTrue=makeEmptyFunction(true);emptyFunction.thatReturnsNull=makeEmptyFunction(null);emptyFunction.thatReturnsThis=function(){return this;};emptyFunction.thatReturnsArgument=function(arg){return arg;};module.exports=emptyFunction;","map":{"version":3,"sources":["C:/Users/bluej/Desktop/2_2/searchGuide/searchGuide/node_modules/react-native-web/node_modules/fbjs/lib/emptyFunction.js"],"names":["makeEmptyFunction","arg","emptyFunction","thatReturns","thatReturnsFalse","thatReturnsTrue","thatReturnsNull","thatReturnsThis","thatReturnsArgument","module","exports"],"mappings":"AAAA,aAUA,QAASA,CAAAA,iBAAT,CAA2BC,GAA3B,CAAgC,CAC9B,MAAO,WAAY,CACjB,MAAOA,CAAAA,GAAP,CACD,CAFD,CAGD,CAQD,GAAIC,CAAAA,aAAa,CAAG,QAASA,CAAAA,aAAT,EAAyB,CAAE,CAA/C,CAEAA,aAAa,CAACC,WAAd,CAA4BH,iBAA5B,CACAE,aAAa,CAACE,gBAAd,CAAiCJ,iBAAiB,CAAC,KAAD,CAAlD,CACAE,aAAa,CAACG,eAAd,CAAgCL,iBAAiB,CAAC,IAAD,CAAjD,CACAE,aAAa,CAACI,eAAd,CAAgCN,iBAAiB,CAAC,IAAD,CAAjD,CAEAE,aAAa,CAACK,eAAd,CAAgC,UAAY,CAC1C,MAAO,KAAP,CACD,CAFD,CAIAL,aAAa,CAACM,mBAAd,CAAoC,SAAUP,GAAV,CAAe,CACjD,MAAOA,CAAAA,GAAP,CACD,CAFD,CAIAQ,MAAM,CAACC,OAAP,CAAiBR,aAAjB","sourcesContent":["\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nfunction makeEmptyFunction(arg) {\n  return function () {\n    return arg;\n  };\n}\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\n\n\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\n\nemptyFunction.thatReturnsThis = function () {\n  return this;\n};\n\nemptyFunction.thatReturnsArgument = function (arg) {\n  return arg;\n};\n\nmodule.exports = emptyFunction;"]},"metadata":{},"sourceType":"script"}