UNPKG

2.96 kBSource Map (JSON)View Raw
1{"version":3,"sources":["filled.js"],"names":[],"mappings":"AAAA;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDA,IAAM,UAAU,QAAS,SAAT,CAAhB;AACA,IAAM,QAAQ,QAAS,OAAT,CAAd;;AAEA,IAAM,SAAS,SAAS,MAAT,CAAiB,KAAjB,EAAwB;AACtC;;;;;;;;AAQA,KAAI,CAAC,MAAO,KAAP,EAAc,QAAd,CAAL,EAA+B;AAC9B,QAAM,IAAI,KAAJ,CAAW,eAAX,CAAN;AACA;;AAED,QAAS,QAAS,KAAT,KAAoB,CAA7B;AACA,CAdD;;AAgBA,OAAO,OAAP,GAAiB,MAAjB","file":"filled.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\": \"filled\",\n\t\t\t\"path\": \"filled/filled.js\",\n\t\t\t\"file\": \"filled.js\",\n\t\t\t\"module\": \"filled\",\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/filled.git\",\n\t\t\t\"test\": \"filled-test.js\",\n\t\t\t\"global\": true\n\t\t}\n\t@end-module-configuration\n\n\t@module-documentation:\n\t\tCheck if array contains something.\n\t@end-module-documentation\n\n\t@include:\n\t\t{\n\t\t\t\"arkount\": \"arkount\",\n\t\t\t\"doubt\": \"doubt\"\n\t\t}\n\t@end-include\n*/\n\nconst arkount = require( \"arkount\" );\nconst doubt = require( \"doubt\" );\n\nconst filled = function filled( array ){\n\t/*;\n\t\t@meta-configuration:\n\t\t\t{\n\t\t\t\t\"array:required\": \"[*]\"\n\t\t\t}\n\t\t@end-meta-configuration\n\t*/\n\n\tif( !doubt( array, AS_ARRAY ) ){\n\t\tthrow new Error( \"invalid array\" );\n\t}\n\n\treturn ( arkount( array ) != 0 );\n};\n\nmodule.exports = filled;\n"]}
\No newline at end of file