-
Notifications
You must be signed in to change notification settings - Fork 0
/
eqe.support.js.map
1 lines (1 loc) · 3.56 KB
/
eqe.support.js.map
1
{"version":3,"sources":["eqe.js"],"names":[],"mappings":"AAAA;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DA,IAAM,OAAO,QAAS,MAAT,CAAb;AACA,IAAM,UAAU,QAAS,SAAT,CAAhB;;AAEA,IAAM,MAAM,SAAS,GAAT,CAAc,MAAd,EAAsB,MAAtB,EAA8B;AACzC;;;;;;;;;AASA,KAAG;AACF,MAAI,OAAO,MAAP,IAAiB,UAAjB,IAA+B,OAAO,MAAP,IAAiB,UAAhD;AACH,GAAC,KAAM,MAAN,CADE,IACgB,CAAC,KAAM,MAAN,CADrB;AAEA;AACC,UAAO,QAAS,MAAT,KAAqB,QAAS,MAAT,CAArB,IAA0C,WAAW,MAA5D;AACA;;AAED,SAAO,WAAW,MAAlB;;AAEA,EATD,CASC,OAAO,KAAP,EAAc;AACd,SAAO,KAAP;AACA;AACD,CAtBD;;AAwBA,OAAO,OAAP,GAAiB,GAAjB","file":"eqe.support.js","sourcesContent":["\"use strict\";\n\n/*;\n\t@module-license:\n\t\tThe MIT License (MIT)\n\t\t@mit-license\n\n\t\tCopyright (@c) 2017 Richeve Siodina Bebedor\n\t\t@email: richeve.bebedor@gmail.com\n\n\t\tPermission is hereby granted, free of charge, to any person obtaining a copy\n\t\tof this software and associated documentation files (the \"Software\"), to deal\n\t\tin the Software without restriction, including without limitation the rights\n\t\tto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t\tcopies of the Software, and to permit persons to whom the Software is\n\t\tfurnished to do so, subject to the following conditions:\n\n\t\tThe above copyright notice and this permission notice shall be included in all\n\t\tcopies or substantial portions of the Software.\n\n\t\tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t\tIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t\tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t\tAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t\tLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t\tOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n\t\tSOFTWARE.\n\t@end-module-license\n\n\t@module-configuration:\n\t\t{\n\t\t\t\"package\": \"eqe\",\n\t\t\t\"path\": \"eqe/eqe.js\",\n\t\t\t\"file\": \"eqe.js\",\n\t\t\t\"module\": \"eqe\",\n\t\t\t\"author\": \"Richeve S. Bebedor\",\n\t\t\t\"eMail\": \"richeve.bebedor@gmail.com\",\n\t\t\t\"contributors\": [\n\t\t\t\t\"John Lenon Maghanoy <johnlenonmaghanoy@gmail.com>\",\n\t\t\t\t\"Vinse Vinalon <vinsevinalon@gmail.com>\"\n\t\t\t],\n\t\t\t\"repository\": \"https://github.com/volkovasystems/eqe.git\",\n\t\t\t\"test\": \"eqe-test.js\",\n\t\t\t\"global\": true\n\t\t}\n\t@end-module-configuration\n\n\t@module-documentation:\n\t\tShallow equal.\n\n\t\tFor cases of function, two functions are equal if their contents are equal and\n\t\t\tboth are not native. This is important because, functions tend to have\n\t\t\tdifferent references but same look, which may be implied that they are\n\t\t\tcreated using a factory function and thus may produce different references\n\t\t\talthough they have the same content.\n\t@end-module-documentation\n\n\t@include:\n\t\t{\n\t\t\t\"nafe\": \"nafe\",\n\t\t\t\"stringe\": \"stringe\"\n\t\t}\n\t@end-include\n*/\n\nconst nafe = require( \"nafe\" );\nconst stringe = require( \"stringe\" );\n\nconst eqe = function eqe( source, target ){\n\t/*;\n\t\t@meta-configuration:\n\t\t\t{\n\t\t\t\t\"source:required\": \"*\",\n\t\t\t\t\"target:required\": \"*\"\n\t\t\t}\n\t\t@end-meta-configuration\n\t*/\n\n\ttry{\n\t\tif( typeof source == \"function\" && typeof target == \"function\" &&\n\t\t\t!nafe( source ) && !nafe( target ) )\n\t\t{\n\t\t\treturn stringe( source ) == stringe( target ) || source === target;\n\t\t}\n\n\t\treturn source === target;\n\n\t}catch( error ){\n\t\treturn false;\n\t}\n};\n\nmodule.exports = eqe;\n"]}