@ohos-ports/stdlib-process-read-stdin 0.2.3-beta.0 → 0.2.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/node_modules/@stdlib/assert-has-node-buffer-support/LICENSE +177 -0
  2. package/node_modules/@stdlib/assert-has-node-buffer-support/NOTICE +1 -0
  3. package/node_modules/@stdlib/assert-has-node-buffer-support/README.md +187 -0
  4. package/node_modules/@stdlib/assert-has-node-buffer-support/SECURITY.md +5 -0
  5. package/node_modules/@stdlib/assert-has-node-buffer-support/dist/index.d.ts +3 -0
  6. package/node_modules/@stdlib/assert-has-node-buffer-support/dist/index.js +7 -0
  7. package/node_modules/@stdlib/assert-has-node-buffer-support/dist/index.js.map +7 -0
  8. package/node_modules/@stdlib/assert-has-node-buffer-support/docs/types/index.d.ts +35 -0
  9. package/node_modules/@stdlib/assert-has-node-buffer-support/lib/buffer.js +28 -0
  10. package/node_modules/@stdlib/assert-has-node-buffer-support/lib/index.js +40 -0
  11. package/node_modules/@stdlib/assert-has-node-buffer-support/lib/main.js +68 -0
  12. package/node_modules/@stdlib/assert-has-node-buffer-support/package.json +76 -0
  13. package/node_modules/@stdlib/assert-has-own-property/LICENSE +177 -0
  14. package/node_modules/@stdlib/assert-has-own-property/NOTICE +1 -0
  15. package/node_modules/@stdlib/assert-has-own-property/README.md +263 -0
  16. package/node_modules/@stdlib/assert-has-own-property/SECURITY.md +5 -0
  17. package/node_modules/@stdlib/assert-has-own-property/dist/index.d.ts +3 -0
  18. package/node_modules/@stdlib/assert-has-own-property/dist/index.js +5 -0
  19. package/node_modules/@stdlib/assert-has-own-property/dist/index.js.map +7 -0
  20. package/node_modules/@stdlib/assert-has-own-property/docs/types/index.d.ts +49 -0
  21. package/node_modules/@stdlib/assert-has-own-property/lib/index.js +47 -0
  22. package/node_modules/@stdlib/assert-has-own-property/lib/main.js +64 -0
  23. package/node_modules/@stdlib/assert-has-own-property/package.json +74 -0
  24. package/node_modules/@stdlib/assert-has-symbol-support/LICENSE +177 -0
  25. package/node_modules/@stdlib/assert-has-symbol-support/NOTICE +1 -0
  26. package/node_modules/@stdlib/assert-has-symbol-support/README.md +193 -0
  27. package/node_modules/@stdlib/assert-has-symbol-support/SECURITY.md +5 -0
  28. package/node_modules/@stdlib/assert-has-symbol-support/dist/index.d.ts +3 -0
  29. package/node_modules/@stdlib/assert-has-symbol-support/dist/index.js +5 -0
  30. package/node_modules/@stdlib/assert-has-symbol-support/dist/index.js.map +7 -0
  31. package/node_modules/@stdlib/assert-has-symbol-support/docs/types/index.d.ts +35 -0
  32. package/node_modules/@stdlib/assert-has-symbol-support/lib/index.js +40 -0
  33. package/node_modules/@stdlib/assert-has-symbol-support/lib/main.js +42 -0
  34. package/node_modules/@stdlib/assert-has-symbol-support/package.json +73 -0
  35. package/node_modules/@stdlib/assert-has-tostringtag-support/LICENSE +177 -0
  36. package/node_modules/@stdlib/assert-has-tostringtag-support/NOTICE +1 -0
  37. package/node_modules/@stdlib/assert-has-tostringtag-support/README.md +187 -0
  38. package/node_modules/@stdlib/assert-has-tostringtag-support/SECURITY.md +5 -0
  39. package/node_modules/@stdlib/assert-has-tostringtag-support/dist/index.d.ts +3 -0
  40. package/node_modules/@stdlib/assert-has-tostringtag-support/dist/index.js +5 -0
  41. package/node_modules/@stdlib/assert-has-tostringtag-support/dist/index.js.map +7 -0
  42. package/node_modules/@stdlib/assert-has-tostringtag-support/docs/types/index.d.ts +35 -0
  43. package/node_modules/@stdlib/assert-has-tostringtag-support/lib/index.js +40 -0
  44. package/node_modules/@stdlib/assert-has-tostringtag-support/lib/main.js +49 -0
  45. package/node_modules/@stdlib/assert-has-tostringtag-support/package.json +79 -0
  46. package/node_modules/@stdlib/assert-is-array/LICENSE +177 -0
  47. package/node_modules/@stdlib/assert-is-array/NOTICE +1 -0
  48. package/node_modules/@stdlib/assert-is-array/README.md +183 -0
  49. package/node_modules/@stdlib/assert-is-array/SECURITY.md +5 -0
  50. package/node_modules/@stdlib/assert-is-array/dist/index.d.ts +3 -0
  51. package/node_modules/@stdlib/assert-is-array/dist/index.js +5 -0
  52. package/node_modules/@stdlib/assert-is-array/dist/index.js.map +7 -0
  53. package/node_modules/@stdlib/assert-is-array/docs/types/index.d.ts +40 -0
  54. package/node_modules/@stdlib/assert-is-array/lib/index.js +43 -0
  55. package/node_modules/@stdlib/assert-is-array/lib/main.js +63 -0
  56. package/node_modules/@stdlib/assert-is-array/package.json +72 -0
  57. package/node_modules/@stdlib/assert-is-boolean/LICENSE +177 -0
  58. package/node_modules/@stdlib/assert-is-boolean/NOTICE +1 -0
  59. package/node_modules/@stdlib/assert-is-boolean/README.md +228 -0
  60. package/node_modules/@stdlib/assert-is-boolean/SECURITY.md +5 -0
  61. package/node_modules/@stdlib/assert-is-boolean/dist/index.d.ts +3 -0
  62. package/node_modules/@stdlib/assert-is-boolean/dist/index.js +13 -0
  63. package/node_modules/@stdlib/assert-is-boolean/dist/index.js.map +7 -0
  64. package/node_modules/@stdlib/assert-is-boolean/docs/types/index.d.ts +125 -0
  65. package/node_modules/@stdlib/assert-is-boolean/lib/index.js +73 -0
  66. package/node_modules/@stdlib/assert-is-boolean/lib/main.js +62 -0
  67. package/node_modules/@stdlib/assert-is-boolean/lib/object.js +68 -0
  68. package/node_modules/@stdlib/assert-is-boolean/lib/primitive.js +48 -0
  69. package/node_modules/@stdlib/assert-is-boolean/lib/tostring.js +27 -0
  70. package/node_modules/@stdlib/assert-is-boolean/lib/try2serialize.js +47 -0
  71. package/node_modules/@stdlib/assert-is-boolean/package.json +80 -0
  72. package/node_modules/@stdlib/assert-is-buffer/LICENSE +177 -0
  73. package/node_modules/@stdlib/assert-is-buffer/NOTICE +1 -0
  74. package/node_modules/@stdlib/assert-is-buffer/README.md +223 -0
  75. package/node_modules/@stdlib/assert-is-buffer/SECURITY.md +5 -0
  76. package/node_modules/@stdlib/assert-is-buffer/dist/index.d.ts +3 -0
  77. package/node_modules/@stdlib/assert-is-buffer/dist/index.js +5 -0
  78. package/node_modules/@stdlib/assert-is-buffer/dist/index.js.map +7 -0
  79. package/node_modules/@stdlib/assert-is-buffer/docs/types/index.d.ts +50 -0
  80. package/node_modules/@stdlib/assert-is-buffer/lib/index.js +43 -0
  81. package/node_modules/@stdlib/assert-is-buffer/lib/main.js +70 -0
  82. package/node_modules/@stdlib/assert-is-buffer/package.json +73 -0
  83. package/node_modules/@stdlib/assert-is-function/LICENSE +177 -0
  84. package/node_modules/@stdlib/assert-is-function/NOTICE +1 -0
  85. package/node_modules/@stdlib/assert-is-function/README.md +192 -0
  86. package/node_modules/@stdlib/assert-is-function/SECURITY.md +5 -0
  87. package/node_modules/@stdlib/assert-is-function/dist/index.d.ts +3 -0
  88. package/node_modules/@stdlib/assert-is-function/dist/index.js +5 -0
  89. package/node_modules/@stdlib/assert-is-function/dist/index.js.map +7 -0
  90. package/node_modules/@stdlib/assert-is-function/docs/types/index.d.ts +40 -0
  91. package/node_modules/@stdlib/assert-is-function/lib/index.js +44 -0
  92. package/node_modules/@stdlib/assert-is-function/lib/main.js +50 -0
  93. package/node_modules/@stdlib/assert-is-function/package.json +74 -0
  94. package/node_modules/@stdlib/assert-is-object-like/LICENSE +177 -0
  95. package/node_modules/@stdlib/assert-is-object-like/NOTICE +1 -0
  96. package/node_modules/@stdlib/assert-is-object-like/README.md +264 -0
  97. package/node_modules/@stdlib/assert-is-object-like/SECURITY.md +5 -0
  98. package/node_modules/@stdlib/assert-is-object-like/dist/index.d.ts +3 -0
  99. package/node_modules/@stdlib/assert-is-object-like/dist/index.js +5 -0
  100. package/node_modules/@stdlib/assert-is-object-like/dist/index.js.map +7 -0
  101. package/node_modules/@stdlib/assert-is-object-like/docs/types/index.d.ts +48 -0
  102. package/node_modules/@stdlib/assert-is-object-like/lib/index.js +67 -0
  103. package/node_modules/@stdlib/assert-is-object-like/lib/main.js +49 -0
  104. package/node_modules/@stdlib/assert-is-object-like/package.json +79 -0
  105. package/node_modules/@stdlib/assert-is-string/LICENSE +177 -0
  106. package/node_modules/@stdlib/assert-is-string/NOTICE +1 -0
  107. package/node_modules/@stdlib/assert-is-string/README.md +224 -0
  108. package/node_modules/@stdlib/assert-is-string/SECURITY.md +5 -0
  109. package/node_modules/@stdlib/assert-is-string/dist/index.d.ts +3 -0
  110. package/node_modules/@stdlib/assert-is-string/dist/index.js +13 -0
  111. package/node_modules/@stdlib/assert-is-string/dist/index.js.map +7 -0
  112. package/node_modules/@stdlib/assert-is-string/docs/types/index.d.ts +101 -0
  113. package/node_modules/@stdlib/assert-is-string/lib/index.js +73 -0
  114. package/node_modules/@stdlib/assert-is-string/lib/main.js +50 -0
  115. package/node_modules/@stdlib/assert-is-string/lib/object.js +65 -0
  116. package/node_modules/@stdlib/assert-is-string/lib/primitive.js +42 -0
  117. package/node_modules/@stdlib/assert-is-string/lib/try2valueof.js +47 -0
  118. package/node_modules/@stdlib/assert-is-string/lib/valueof.js +27 -0
  119. package/node_modules/@stdlib/assert-is-string/package.json +80 -0
  120. package/node_modules/@stdlib/assert-tools-array-function/LICENSE +177 -0
  121. package/node_modules/@stdlib/assert-tools-array-function/NOTICE +1 -0
  122. package/node_modules/@stdlib/assert-tools-array-function/README.md +216 -0
  123. package/node_modules/@stdlib/assert-tools-array-function/SECURITY.md +5 -0
  124. package/node_modules/@stdlib/assert-tools-array-function/dist/index.d.ts +3 -0
  125. package/node_modules/@stdlib/assert-tools-array-function/dist/index.js +5 -0
  126. package/node_modules/@stdlib/assert-tools-array-function/dist/index.js.map +7 -0
  127. package/node_modules/@stdlib/assert-tools-array-function/docs/types/index.d.ts +61 -0
  128. package/node_modules/@stdlib/assert-tools-array-function/lib/index.js +49 -0
  129. package/node_modules/@stdlib/assert-tools-array-function/lib/main.js +85 -0
  130. package/node_modules/@stdlib/assert-tools-array-function/package.json +73 -0
  131. package/node_modules/@stdlib/boolean-ctor/LICENSE +177 -0
  132. package/node_modules/@stdlib/boolean-ctor/NOTICE +1 -0
  133. package/node_modules/@stdlib/boolean-ctor/README.md +264 -0
  134. package/node_modules/@stdlib/boolean-ctor/SECURITY.md +5 -0
  135. package/node_modules/@stdlib/boolean-ctor/dist/index.d.ts +3 -0
  136. package/node_modules/@stdlib/boolean-ctor/dist/index.js +5 -0
  137. package/node_modules/@stdlib/boolean-ctor/dist/index.js.map +7 -0
  138. package/node_modules/@stdlib/boolean-ctor/docs/types/index.d.ts +52 -0
  139. package/node_modules/@stdlib/boolean-ctor/lib/index.js +52 -0
  140. package/node_modules/@stdlib/boolean-ctor/lib/main.js +51 -0
  141. package/node_modules/@stdlib/boolean-ctor/package.json +61 -0
  142. package/node_modules/@stdlib/buffer-ctor/LICENSE +177 -0
  143. package/node_modules/@stdlib/buffer-ctor/NOTICE +1 -0
  144. package/node_modules/@stdlib/buffer-ctor/README.md +273 -0
  145. package/node_modules/@stdlib/buffer-ctor/SECURITY.md +5 -0
  146. package/node_modules/@stdlib/buffer-ctor/dist/index.d.ts +3 -0
  147. package/node_modules/@stdlib/buffer-ctor/dist/index.js +19 -0
  148. package/node_modules/@stdlib/buffer-ctor/dist/index.js.map +7 -0
  149. package/node_modules/@stdlib/buffer-ctor/docs/types/index.d.ts +37 -0
  150. package/node_modules/@stdlib/buffer-ctor/lib/index.js +52 -0
  151. package/node_modules/@stdlib/buffer-ctor/lib/main.js +28 -0
  152. package/node_modules/@stdlib/buffer-ctor/lib/polyfill.js +37 -0
  153. package/node_modules/@stdlib/buffer-ctor/package.json +66 -0
  154. package/node_modules/@stdlib/buffer-from-string/LICENSE +177 -0
  155. package/node_modules/@stdlib/buffer-from-string/NOTICE +1 -0
  156. package/node_modules/@stdlib/buffer-from-string/README.md +249 -0
  157. package/node_modules/@stdlib/buffer-from-string/SECURITY.md +5 -0
  158. package/node_modules/@stdlib/buffer-from-string/dist/index.d.ts +3 -0
  159. package/node_modules/@stdlib/buffer-from-string/dist/index.js +19 -0
  160. package/node_modules/@stdlib/buffer-from-string/dist/index.js.map +7 -0
  161. package/node_modules/@stdlib/buffer-from-string/docs/types/index.d.ts +42 -0
  162. package/node_modules/@stdlib/buffer-from-string/lib/has_from.js +34 -0
  163. package/node_modules/@stdlib/buffer-from-string/lib/index.js +52 -0
  164. package/node_modules/@stdlib/buffer-from-string/lib/main.js +60 -0
  165. package/node_modules/@stdlib/buffer-from-string/lib/polyfill.js +60 -0
  166. package/node_modules/@stdlib/buffer-from-string/package.json +74 -0
  167. package/node_modules/@stdlib/error-tools-fmtprodmsg/LICENSE +177 -0
  168. package/node_modules/@stdlib/error-tools-fmtprodmsg/NOTICE +1 -0
  169. package/node_modules/@stdlib/error-tools-fmtprodmsg/README.md +182 -0
  170. package/node_modules/@stdlib/error-tools-fmtprodmsg/SECURITY.md +5 -0
  171. package/node_modules/@stdlib/error-tools-fmtprodmsg/dist/index.d.ts +3 -0
  172. package/node_modules/@stdlib/error-tools-fmtprodmsg/dist/index.js +5 -0
  173. package/node_modules/@stdlib/error-tools-fmtprodmsg/dist/index.js.map +7 -0
  174. package/node_modules/@stdlib/error-tools-fmtprodmsg/docs/types/index.d.ts +39 -0
  175. package/node_modules/@stdlib/error-tools-fmtprodmsg/lib/index.js +40 -0
  176. package/node_modules/@stdlib/error-tools-fmtprodmsg/lib/main.js +48 -0
  177. package/node_modules/@stdlib/error-tools-fmtprodmsg/package.json +71 -0
  178. package/node_modules/@stdlib/regexp-function-name/LICENSE +177 -0
  179. package/node_modules/@stdlib/regexp-function-name/NOTICE +1 -0
  180. package/node_modules/@stdlib/regexp-function-name/README.md +215 -0
  181. package/node_modules/@stdlib/regexp-function-name/SECURITY.md +5 -0
  182. package/node_modules/@stdlib/regexp-function-name/dist/index.d.ts +3 -0
  183. package/node_modules/@stdlib/regexp-function-name/dist/index.js +8 -0
  184. package/node_modules/@stdlib/regexp-function-name/dist/index.js.map +7 -0
  185. package/node_modules/@stdlib/regexp-function-name/docs/types/index.d.ts +74 -0
  186. package/node_modules/@stdlib/regexp-function-name/lib/index.js +61 -0
  187. package/node_modules/@stdlib/regexp-function-name/lib/main.js +54 -0
  188. package/node_modules/@stdlib/regexp-function-name/lib/regexp.js +60 -0
  189. package/node_modules/@stdlib/regexp-function-name/package.json +68 -0
  190. package/node_modules/@stdlib/streams-node-stdin/LICENSE +177 -0
  191. package/node_modules/@stdlib/streams-node-stdin/NOTICE +1 -0
  192. package/node_modules/@stdlib/streams-node-stdin/README.md +227 -0
  193. package/node_modules/@stdlib/streams-node-stdin/SECURITY.md +5 -0
  194. package/node_modules/@stdlib/streams-node-stdin/dist/index.d.ts +3 -0
  195. package/node_modules/@stdlib/streams-node-stdin/dist/index.js +5 -0
  196. package/node_modules/@stdlib/streams-node-stdin/dist/index.js.map +7 -0
  197. package/node_modules/@stdlib/streams-node-stdin/docs/types/index.d.ts +31 -0
  198. package/node_modules/@stdlib/streams-node-stdin/lib/index.js +41 -0
  199. package/node_modules/@stdlib/streams-node-stdin/lib/main.js +28 -0
  200. package/node_modules/@stdlib/streams-node-stdin/package.json +65 -0
  201. package/node_modules/@stdlib/string-base-format-interpolate/LICENSE +177 -0
  202. package/node_modules/@stdlib/string-base-format-interpolate/NOTICE +1 -0
  203. package/node_modules/@stdlib/string-base-format-interpolate/README.md +219 -0
  204. package/node_modules/@stdlib/string-base-format-interpolate/SECURITY.md +5 -0
  205. package/node_modules/@stdlib/string-base-format-interpolate/dist/index.d.ts +3 -0
  206. package/node_modules/@stdlib/string-base-format-interpolate/dist/index.js +17 -0
  207. package/node_modules/@stdlib/string-base-format-interpolate/dist/index.js.map +7 -0
  208. package/node_modules/@stdlib/string-base-format-interpolate/docs/types/index.d.ts +71 -0
  209. package/node_modules/@stdlib/string-base-format-interpolate/lib/format_double.js +103 -0
  210. package/node_modules/@stdlib/string-base-format-interpolate/lib/format_integer.js +115 -0
  211. package/node_modules/@stdlib/string-base-format-interpolate/lib/index.js +41 -0
  212. package/node_modules/@stdlib/string-base-format-interpolate/lib/is_number.js +46 -0
  213. package/node_modules/@stdlib/string-base-format-interpolate/lib/is_string.js +42 -0
  214. package/node_modules/@stdlib/string-base-format-interpolate/lib/main.js +243 -0
  215. package/node_modules/@stdlib/string-base-format-interpolate/lib/space_pad.js +65 -0
  216. package/node_modules/@stdlib/string-base-format-interpolate/lib/zero_pad.js +84 -0
  217. package/node_modules/@stdlib/string-base-format-interpolate/package.json +72 -0
  218. package/node_modules/@stdlib/string-base-format-tokenize/LICENSE +177 -0
  219. package/node_modules/@stdlib/string-base-format-tokenize/NOTICE +1 -0
  220. package/node_modules/@stdlib/string-base-format-tokenize/README.md +203 -0
  221. package/node_modules/@stdlib/string-base-format-tokenize/SECURITY.md +5 -0
  222. package/node_modules/@stdlib/string-base-format-tokenize/dist/index.d.ts +3 -0
  223. package/node_modules/@stdlib/string-base-format-tokenize/dist/index.js +5 -0
  224. package/node_modules/@stdlib/string-base-format-tokenize/dist/index.js.map +7 -0
  225. package/node_modules/@stdlib/string-base-format-tokenize/docs/types/index.d.ts +68 -0
  226. package/node_modules/@stdlib/string-base-format-tokenize/lib/index.js +41 -0
  227. package/node_modules/@stdlib/string-base-format-tokenize/lib/main.js +95 -0
  228. package/node_modules/@stdlib/string-base-format-tokenize/package.json +70 -0
  229. package/node_modules/@stdlib/string-format/LICENSE +177 -0
  230. package/node_modules/@stdlib/string-format/NOTICE +1 -0
  231. package/node_modules/@stdlib/string-format/README.md +341 -0
  232. package/node_modules/@stdlib/string-format/SECURITY.md +5 -0
  233. package/node_modules/@stdlib/string-format/dist/index.d.ts +3 -0
  234. package/node_modules/@stdlib/string-format/dist/index.js +7 -0
  235. package/node_modules/@stdlib/string-format/dist/index.js.map +7 -0
  236. package/node_modules/@stdlib/string-format/docs/types/index.d.ts +42 -0
  237. package/node_modules/@stdlib/string-format/lib/index.js +43 -0
  238. package/node_modules/@stdlib/string-format/lib/is_string.js +42 -0
  239. package/node_modules/@stdlib/string-format/lib/main.js +64 -0
  240. package/node_modules/@stdlib/string-format/package.json +73 -0
  241. package/node_modules/@stdlib/symbol-ctor/LICENSE +177 -0
  242. package/node_modules/@stdlib/symbol-ctor/NOTICE +1 -0
  243. package/node_modules/@stdlib/symbol-ctor/README.md +234 -0
  244. package/node_modules/@stdlib/symbol-ctor/SECURITY.md +5 -0
  245. package/node_modules/@stdlib/symbol-ctor/dist/index.d.ts +3 -0
  246. package/node_modules/@stdlib/symbol-ctor/dist/index.js +5 -0
  247. package/node_modules/@stdlib/symbol-ctor/dist/index.js.map +7 -0
  248. package/node_modules/@stdlib/symbol-ctor/docs/types/index.d.ts +34 -0
  249. package/node_modules/@stdlib/symbol-ctor/lib/index.js +40 -0
  250. package/node_modules/@stdlib/symbol-ctor/lib/main.js +28 -0
  251. package/node_modules/@stdlib/symbol-ctor/package.json +63 -0
  252. package/node_modules/@stdlib/types/LICENSE +177 -0
  253. package/node_modules/@stdlib/types/NOTICE +1 -0
  254. package/node_modules/@stdlib/types/README.md +212 -0
  255. package/node_modules/@stdlib/types/SECURITY.md +5 -0
  256. package/node_modules/@stdlib/types/index.d.ts +3923 -0
  257. package/node_modules/@stdlib/types/lib/browser.js +28 -0
  258. package/node_modules/@stdlib/types/lib/index.js +39 -0
  259. package/node_modules/@stdlib/types/lib/main.js +40 -0
  260. package/node_modules/@stdlib/types/package.json +68 -0
  261. package/node_modules/@stdlib/types/test.ts +734 -0
  262. package/node_modules/@stdlib/utils-constructor-name/LICENSE +177 -0
  263. package/node_modules/@stdlib/utils-constructor-name/NOTICE +1 -0
  264. package/node_modules/@stdlib/utils-constructor-name/README.md +400 -0
  265. package/node_modules/@stdlib/utils-constructor-name/SECURITY.md +5 -0
  266. package/node_modules/@stdlib/utils-constructor-name/dist/index.d.ts +3 -0
  267. package/node_modules/@stdlib/utils-constructor-name/dist/index.js +5 -0
  268. package/node_modules/@stdlib/utils-constructor-name/dist/index.js.map +7 -0
  269. package/node_modules/@stdlib/utils-constructor-name/docs/types/index.d.ts +52 -0
  270. package/node_modules/@stdlib/utils-constructor-name/lib/index.js +46 -0
  271. package/node_modules/@stdlib/utils-constructor-name/lib/main.js +80 -0
  272. package/node_modules/@stdlib/utils-constructor-name/package.json +77 -0
  273. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/LICENSE +177 -0
  274. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/NOTICE +1 -0
  275. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/README.md +216 -0
  276. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/SECURITY.md +5 -0
  277. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/dist/index.d.ts +3 -0
  278. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/dist/index.js +31 -0
  279. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/dist/index.js.map +7 -0
  280. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/dist/main.js +58 -0
  281. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/docs/types/index.d.ts +52 -0
  282. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/lib/index.js +47 -0
  283. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/lib/main.js +58 -0
  284. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/package.json +93 -0
  285. package/node_modules/@stdlib/utils-define-property/LICENSE +177 -0
  286. package/node_modules/@stdlib/utils-define-property/NOTICE +1 -0
  287. package/node_modules/@stdlib/utils-define-property/README.md +228 -0
  288. package/node_modules/@stdlib/utils-define-property/SECURITY.md +5 -0
  289. package/node_modules/@stdlib/utils-define-property/dist/index.d.ts +3 -0
  290. package/node_modules/@stdlib/utils-define-property/dist/index.js +36 -0
  291. package/node_modules/@stdlib/utils-define-property/dist/index.js.map +7 -0
  292. package/node_modules/@stdlib/utils-define-property/docs/types/index.d.ts +52 -0
  293. package/node_modules/@stdlib/utils-define-property/lib/builtin.js +61 -0
  294. package/node_modules/@stdlib/utils-define-property/lib/define_property.js +28 -0
  295. package/node_modules/@stdlib/utils-define-property/lib/has_define_property_support.js +51 -0
  296. package/node_modules/@stdlib/utils-define-property/lib/index.js +58 -0
  297. package/node_modules/@stdlib/utils-define-property/lib/polyfill.js +122 -0
  298. package/node_modules/@stdlib/utils-define-property/package.json +75 -0
  299. package/node_modules/@stdlib/utils-global/LICENSE +177 -0
  300. package/node_modules/@stdlib/utils-global/NOTICE +1 -0
  301. package/node_modules/@stdlib/utils-global/README.md +208 -0
  302. package/node_modules/@stdlib/utils-global/SECURITY.md +5 -0
  303. package/node_modules/@stdlib/utils-global/dist/index.d.ts +3 -0
  304. package/node_modules/@stdlib/utils-global/dist/index.js +36 -0
  305. package/node_modules/@stdlib/utils-global/dist/index.js.map +7 -0
  306. package/node_modules/@stdlib/utils-global/docs/types/index.d.ts +40 -0
  307. package/node_modules/@stdlib/utils-global/lib/browser.js +79 -0
  308. package/node_modules/@stdlib/utils-global/lib/codegen.js +36 -0
  309. package/node_modules/@stdlib/utils-global/lib/global.js +28 -0
  310. package/node_modules/@stdlib/utils-global/lib/global_this.js +28 -0
  311. package/node_modules/@stdlib/utils-global/lib/index.js +40 -0
  312. package/node_modules/@stdlib/utils-global/lib/main.js +83 -0
  313. package/node_modules/@stdlib/utils-global/lib/self.js +28 -0
  314. package/node_modules/@stdlib/utils-global/lib/window.js +28 -0
  315. package/node_modules/@stdlib/utils-global/package.json +74 -0
  316. package/node_modules/@stdlib/utils-native-class/LICENSE +177 -0
  317. package/node_modules/@stdlib/utils-native-class/NOTICE +1 -0
  318. package/node_modules/@stdlib/utils-native-class/README.md +349 -0
  319. package/node_modules/@stdlib/utils-native-class/SECURITY.md +5 -0
  320. package/node_modules/@stdlib/utils-native-class/dist/index.d.ts +3 -0
  321. package/node_modules/@stdlib/utils-native-class/dist/index.js +11 -0
  322. package/node_modules/@stdlib/utils-native-class/dist/index.js.map +7 -0
  323. package/node_modules/@stdlib/utils-native-class/docs/types/index.d.ts +51 -0
  324. package/node_modules/@stdlib/utils-native-class/lib/index.js +61 -0
  325. package/node_modules/@stdlib/utils-native-class/lib/main.js +56 -0
  326. package/node_modules/@stdlib/utils-native-class/lib/polyfill.js +81 -0
  327. package/node_modules/@stdlib/utils-native-class/lib/tostring.js +28 -0
  328. package/node_modules/@stdlib/utils-native-class/lib/tostringtag.js +33 -0
  329. package/node_modules/@stdlib/utils-native-class/package.json +84 -0
  330. package/node_modules/@stdlib/utils-next-tick/LICENSE +177 -0
  331. package/node_modules/@stdlib/utils-next-tick/NOTICE +1 -0
  332. package/node_modules/@stdlib/utils-next-tick/README.md +183 -0
  333. package/node_modules/@stdlib/utils-next-tick/SECURITY.md +5 -0
  334. package/node_modules/@stdlib/utils-next-tick/dist/index.d.ts +3 -0
  335. package/node_modules/@stdlib/utils-next-tick/dist/index.js +5 -0
  336. package/node_modules/@stdlib/utils-next-tick/dist/index.js.map +7 -0
  337. package/node_modules/@stdlib/utils-next-tick/docs/types/index.d.ts +43 -0
  338. package/node_modules/@stdlib/utils-next-tick/lib/index.js +43 -0
  339. package/node_modules/@stdlib/utils-next-tick/lib/main.js +72 -0
  340. package/node_modules/@stdlib/utils-next-tick/package.json +77 -0
  341. package/node_modules/@stdlib/utils-type-of/LICENSE +177 -0
  342. package/node_modules/@stdlib/utils-type-of/NOTICE +1 -0
  343. package/node_modules/@stdlib/utils-type-of/README.md +366 -0
  344. package/node_modules/@stdlib/utils-type-of/SECURITY.md +5 -0
  345. package/node_modules/@stdlib/utils-type-of/dist/index.d.ts +3 -0
  346. package/node_modules/@stdlib/utils-type-of/dist/index.js +15 -0
  347. package/node_modules/@stdlib/utils-type-of/dist/index.js.map +7 -0
  348. package/node_modules/@stdlib/utils-type-of/docs/types/index.d.ts +50 -0
  349. package/node_modules/@stdlib/utils-type-of/lib/check.js +55 -0
  350. package/node_modules/@stdlib/utils-type-of/lib/fixtures/nodelist.js +34 -0
  351. package/node_modules/@stdlib/utils-type-of/lib/fixtures/re.js +26 -0
  352. package/node_modules/@stdlib/utils-type-of/lib/fixtures/typedarray.js +26 -0
  353. package/node_modules/@stdlib/utils-type-of/lib/index.js +50 -0
  354. package/node_modules/@stdlib/utils-type-of/lib/main.js +76 -0
  355. package/node_modules/@stdlib/utils-type-of/lib/polyfill.js +41 -0
  356. package/node_modules/@stdlib/utils-type-of/package.json +72 -0
  357. package/package.json +36 -5
@@ -0,0 +1,264 @@
1
+ <!--
2
+
3
+ @license Apache-2.0
4
+
5
+ Copyright (c) 2018 The Stdlib Authors.
6
+
7
+ Licensed under the Apache License, Version 2.0 (the "License");
8
+ you may not use this file except in compliance with the License.
9
+ You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software
14
+ distributed under the License is distributed on an "AS IS" BASIS,
15
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ See the License for the specific language governing permissions and
17
+ limitations under the License.
18
+
19
+ -->
20
+
21
+
22
+ <details>
23
+ <summary>
24
+ About stdlib...
25
+ </summary>
26
+ <p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p>
27
+ <p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p>
28
+ <p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p>
29
+ <p>To join us in bringing numerical computing to the web, get started by checking us out on <a href="https://github.com/stdlib-js/stdlib">GitHub</a>, and please consider <a href="https://opencollective.com/stdlib">financially supporting stdlib</a>. We greatly appreciate your continued support!</p>
30
+ </details>
31
+
32
+ # isObjectLike
33
+
34
+ [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
35
+
36
+ > Test if a value is object-like.
37
+
38
+ <section class="installation">
39
+
40
+ ## Installation
41
+
42
+ ```bash
43
+ npm install @stdlib/assert-is-object-like
44
+ ```
45
+
46
+ </section>
47
+
48
+ <section class="usage">
49
+
50
+ ## Usage
51
+
52
+ ```javascript
53
+ var isObjectLike = require( '@stdlib/assert-is-object-like' );
54
+ ```
55
+
56
+ #### isObjectLike( value )
57
+
58
+ Tests if a `value` is object-like.
59
+
60
+ ```javascript
61
+ var bool = isObjectLike( {} );
62
+ // returns true
63
+
64
+ bool = isObjectLike( [] );
65
+ // returns true
66
+
67
+ bool = isObjectLike( true );
68
+ // returns false
69
+ ```
70
+
71
+ #### isObjectLike.isObjectLikeArray( value )
72
+
73
+ Tests if a `value` is an `array` of object-like values.
74
+
75
+ ```javascript
76
+ var bool = isObjectLike.isObjectLikeArray( [ {}, [] ] );
77
+ // returns true
78
+
79
+ bool = isObjectLike.isObjectLikeArray( [ {}, '3.0' ] );
80
+ // returns false
81
+
82
+ bool = isObjectLike.isObjectLikeArray( [] );
83
+ // returns false
84
+ ```
85
+
86
+ </section>
87
+
88
+ <!-- /.usage -->
89
+
90
+ <section class="notes">
91
+
92
+ ## Notes
93
+
94
+ - Return values are the same as would be obtained using the built-in [`typeof`][type-of] operator **except** that `null` is **not** considered an `object`.
95
+
96
+ ```javascript
97
+ var bool = ( typeof null === 'object' );
98
+ // returns true
99
+
100
+ bool = isObjectLike( null );
101
+ // returns false
102
+ ```
103
+
104
+ </section>
105
+
106
+ <!-- /.notes -->
107
+
108
+ <section class="examples">
109
+
110
+ ## Examples
111
+
112
+ <!-- eslint-disable no-empty-function, no-restricted-syntax -->
113
+
114
+ <!-- eslint no-undef: "error" -->
115
+
116
+ ```javascript
117
+ var Int8Array = require( '@stdlib/array-int8' );
118
+ var ArrayBuffer = require( '@stdlib/array-buffer' );
119
+ var isObjectLike = require( '@stdlib/assert-is-object-like' );
120
+
121
+ var bool = isObjectLike( {} );
122
+ // returns true
123
+
124
+ bool = isObjectLike( [] );
125
+ // returns true
126
+
127
+ bool = isObjectLike( /./ );
128
+ // returns true
129
+
130
+ bool = isObjectLike( new Date() );
131
+ // returns true
132
+
133
+ bool = isObjectLike( Math );
134
+ // returns true
135
+
136
+ bool = isObjectLike( JSON );
137
+ // returns true
138
+
139
+ bool = isObjectLike( new Int8Array() );
140
+ // returns true
141
+
142
+ bool = isObjectLike( new ArrayBuffer() );
143
+ // returns true
144
+
145
+ bool = isObjectLike( 'a' );
146
+ // returns false
147
+
148
+ bool = isObjectLike( 5 );
149
+ // returns false
150
+
151
+ bool = isObjectLike( null );
152
+ // returns false
153
+
154
+ bool = isObjectLike( void 0 );
155
+ // returns false
156
+
157
+ bool = isObjectLike( function foo() {} );
158
+ // returns false
159
+ ```
160
+
161
+ </section>
162
+
163
+ <!-- /.examples -->
164
+
165
+ <!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
166
+
167
+ <section class="related">
168
+
169
+ * * *
170
+
171
+ ## See Also
172
+
173
+ - <span class="package-name">[`@stdlib/assert-is-object`][@stdlib/assert/is-object]</span><span class="delimiter">: </span><span class="description">test if a value is an object.</span>
174
+ - <span class="package-name">[`@stdlib/assert-is-plain-object`][@stdlib/assert/is-plain-object]</span><span class="delimiter">: </span><span class="description">test if a value is a plain object.</span>
175
+
176
+ </section>
177
+
178
+ <!-- /.related -->
179
+
180
+ <!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
181
+
182
+
183
+ <section class="main-repo" >
184
+
185
+ * * *
186
+
187
+ ## Notice
188
+
189
+ This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
190
+
191
+ For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib].
192
+
193
+ #### Community
194
+
195
+ [![Chat][chat-image]][chat-url]
196
+
197
+ ---
198
+
199
+ ## License
200
+
201
+ See [LICENSE][stdlib-license].
202
+
203
+
204
+ ## Copyright
205
+
206
+ Copyright &copy; 2016-2026. The Stdlib [Authors][stdlib-authors].
207
+
208
+ </section>
209
+
210
+ <!-- /.stdlib -->
211
+
212
+ <!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
213
+
214
+ <section class="links">
215
+
216
+ [npm-image]: http://img.shields.io/npm/v/@stdlib/assert-is-object-like.svg
217
+ [npm-url]: https://npmjs.org/package/@stdlib/assert-is-object-like
218
+
219
+ [test-image]: https://github.com/stdlib-js/assert-is-object-like/actions/workflows/test.yml/badge.svg?branch=v0.2.3
220
+ [test-url]: https://github.com/stdlib-js/assert-is-object-like/actions/workflows/test.yml?query=branch:v0.2.3
221
+
222
+ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/assert-is-object-like/main.svg
223
+ [coverage-url]: https://codecov.io/github/stdlib-js/assert-is-object-like?branch=main
224
+
225
+ <!--
226
+
227
+ [dependencies-image]: https://img.shields.io/david/stdlib-js/assert-is-object-like.svg
228
+ [dependencies-url]: https://david-dm.org/stdlib-js/assert-is-object-like/main
229
+
230
+ -->
231
+
232
+ [chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
233
+ [chat-url]: https://stdlib.zulipchat.com
234
+
235
+ [stdlib]: https://github.com/stdlib-js/stdlib
236
+
237
+ [stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
238
+
239
+ [umd]: https://github.com/umdjs/umd
240
+ [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
241
+
242
+ [deno-url]: https://github.com/stdlib-js/assert-is-object-like/tree/deno
243
+ [deno-readme]: https://github.com/stdlib-js/assert-is-object-like/blob/deno/README.md
244
+ [umd-url]: https://github.com/stdlib-js/assert-is-object-like/tree/umd
245
+ [umd-readme]: https://github.com/stdlib-js/assert-is-object-like/blob/umd/README.md
246
+ [esm-url]: https://github.com/stdlib-js/assert-is-object-like/tree/esm
247
+ [esm-readme]: https://github.com/stdlib-js/assert-is-object-like/blob/esm/README.md
248
+ [branches-url]: https://github.com/stdlib-js/assert-is-object-like/blob/main/branches.md
249
+
250
+ [stdlib-license]: https://raw.githubusercontent.com/stdlib-js/assert-is-object-like/main/LICENSE
251
+
252
+ [type-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof
253
+
254
+ <!-- <related-links> -->
255
+
256
+ [@stdlib/assert/is-object]: https://www.npmjs.com/package/@stdlib/assert-is-object
257
+
258
+ [@stdlib/assert/is-plain-object]: https://www.npmjs.com/package/@stdlib/assert-is-plain-object
259
+
260
+ <!-- </related-links> -->
261
+
262
+ </section>
263
+
264
+ <!-- /.links -->
@@ -0,0 +1,5 @@
1
+ # Security
2
+
3
+ > Policy for reporting security vulnerabilities.
4
+
5
+ See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security).
@@ -0,0 +1,3 @@
1
+ /// <reference path="../docs/types/index.d.ts" />
2
+ import isObjectLike from '../docs/types/index';
3
+ export = isObjectLike;
@@ -0,0 +1,5 @@
1
+ "use strict";var a=function(r,e){return function(){return e||r((e={exports:{}}).exports,e),e.exports}};var s=a(function(b,i){
2
+ function u(r){return r!==null&&typeof r=="object"}i.exports=u
3
+ });var c=require('@stdlib/utils-define-nonenumerable-read-only-property/dist'),n=require('@stdlib/assert-tools-array-function/dist'),t=s(),o=n(t);c(t,"isObjectLikeArray",o);module.exports=t;
4
+ /** @license Apache-2.0 */
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../lib/main.js", "../lib/index.js"],
4
+ "sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Tests if a value is object-like.\n*\n* @param {*} value - value to test\n* @returns {boolean} boolean indicating whether a value is object-like\n*\n* @example\n* var bool = isObjectLike( {} );\n* // returns true\n*\n* @example\n* var bool = isObjectLike( [] );\n* // returns true\n*\n* @example\n* var bool = isObjectLike( null );\n* // returns false\n*/\nfunction isObjectLike( value ) {\n\treturn (\n\t\tvalue !== null &&\n\t\ttypeof value === 'object'\n\t);\n}\n\n\n// EXPORTS //\n\nmodule.exports = isObjectLike;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Test if a value is object-like.\n*\n* @module @stdlib/assert-is-object-like\n*\n* @example\n* var isObjectLike = require( '@stdlib/assert-is-object-like' );\n*\n* var bool = isObjectLike( {} );\n* // returns true\n*\n* bool = isObjectLike( [] );\n* // returns true\n*\n* bool = isObjectLike( null );\n* // returns false\n*\n* @example\n* var isObjectLike = require( '@stdlib/assert-is-object-like' ).isObjectLikeArray;\n*\n* var bool = isObjectLike( [ {}, [] ] );\n* // returns true\n*\n* bool = isObjectLike( [ {}, '3.0' ] );\n* // returns false\n*/\n\n// MODULES //\n\nvar setReadOnly = require( '@stdlib/utils-define-nonenumerable-read-only-property' );\nvar arrayfun = require( '@stdlib/assert-tools-array-function' );\nvar main = require( './main.js' );\n\n\n// VARIABLES //\n\nvar isObjectLikeArray = arrayfun( main );\n\n\n// MAIN //\n\nsetReadOnly( main, 'isObjectLikeArray', isObjectLikeArray );\n\n\n// EXPORTS //\n\nmodule.exports = main;\n"],
5
+ "mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsCA,SAASC,EAAcC,EAAQ,CAC9B,OACCA,IAAU,MACV,OAAOA,GAAU,QAEnB,CAKAF,EAAO,QAAUC,ICCjB,IAAIE,EAAc,QAAS,uDAAwD,EAC/EC,EAAW,QAAS,qCAAsC,EAC1DC,EAAO,IAKPC,EAAoBF,EAAUC,CAAK,EAKvCF,EAAaE,EAAM,oBAAqBC,CAAkB,EAK1D,OAAO,QAAUD",
6
+ "names": ["require_main", "__commonJSMin", "exports", "module", "isObjectLike", "value", "setReadOnly", "arrayfun", "main", "isObjectLikeArray"]
7
+ }
@@ -0,0 +1,48 @@
1
+ /*
2
+ * @license Apache-2.0
3
+ *
4
+ * Copyright (c) 2019 The Stdlib Authors.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ // TypeScript Version: 4.1
20
+
21
+ /**
22
+ * Tests if a value is object-like.
23
+ *
24
+ * ## Notes
25
+ *
26
+ * - Return values are the same as would be obtained using the built-in `typeof` operator except that `null` is not considered an object.
27
+ *
28
+ * @param value - value to test
29
+ * @returns boolean indicating whether a value is object-like
30
+ *
31
+ * @example
32
+ * var bool = isObjectLike( {} );
33
+ * // returns true
34
+ *
35
+ * @example
36
+ * var bool = isObjectLike( [] );
37
+ * // returns true
38
+ *
39
+ * @example
40
+ * var bool = isObjectLike( null );
41
+ * // returns false
42
+ */
43
+ declare function isObjectLike( value: any ): boolean;
44
+
45
+
46
+ // EXPORTS //
47
+
48
+ export = isObjectLike;
@@ -0,0 +1,67 @@
1
+ /**
2
+ * @license Apache-2.0
3
+ *
4
+ * Copyright (c) 2018 The Stdlib Authors.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ 'use strict';
20
+
21
+ /**
22
+ * Test if a value is object-like.
23
+ *
24
+ * @module @stdlib/assert-is-object-like
25
+ *
26
+ * @example
27
+ * var isObjectLike = require( '@stdlib/assert-is-object-like' );
28
+ *
29
+ * var bool = isObjectLike( {} );
30
+ * // returns true
31
+ *
32
+ * bool = isObjectLike( [] );
33
+ * // returns true
34
+ *
35
+ * bool = isObjectLike( null );
36
+ * // returns false
37
+ *
38
+ * @example
39
+ * var isObjectLike = require( '@stdlib/assert-is-object-like' ).isObjectLikeArray;
40
+ *
41
+ * var bool = isObjectLike( [ {}, [] ] );
42
+ * // returns true
43
+ *
44
+ * bool = isObjectLike( [ {}, '3.0' ] );
45
+ * // returns false
46
+ */
47
+
48
+ // MODULES //
49
+
50
+ var setReadOnly = require( '@stdlib/utils-define-nonenumerable-read-only-property' );
51
+ var arrayfun = require( '@stdlib/assert-tools-array-function' );
52
+ var main = require( './main.js' );
53
+
54
+
55
+ // VARIABLES //
56
+
57
+ var isObjectLikeArray = arrayfun( main );
58
+
59
+
60
+ // MAIN //
61
+
62
+ setReadOnly( main, 'isObjectLikeArray', isObjectLikeArray );
63
+
64
+
65
+ // EXPORTS //
66
+
67
+ module.exports = main;
@@ -0,0 +1,49 @@
1
+ /**
2
+ * @license Apache-2.0
3
+ *
4
+ * Copyright (c) 2018 The Stdlib Authors.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ 'use strict';
20
+
21
+ /**
22
+ * Tests if a value is object-like.
23
+ *
24
+ * @param {*} value - value to test
25
+ * @returns {boolean} boolean indicating whether a value is object-like
26
+ *
27
+ * @example
28
+ * var bool = isObjectLike( {} );
29
+ * // returns true
30
+ *
31
+ * @example
32
+ * var bool = isObjectLike( [] );
33
+ * // returns true
34
+ *
35
+ * @example
36
+ * var bool = isObjectLike( null );
37
+ * // returns false
38
+ */
39
+ function isObjectLike( value ) {
40
+ return (
41
+ value !== null &&
42
+ typeof value === 'object'
43
+ );
44
+ }
45
+
46
+
47
+ // EXPORTS //
48
+
49
+ module.exports = isObjectLike;
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "@stdlib/assert-is-object-like",
3
+ "version": "0.2.3",
4
+ "description": "Test if a value is object-like.",
5
+ "license": "Apache-2.0",
6
+ "author": {
7
+ "name": "The Stdlib Authors",
8
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
9
+ },
10
+ "contributors": [
11
+ {
12
+ "name": "The Stdlib Authors",
13
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
14
+ }
15
+ ],
16
+ "main": "./lib",
17
+ "directories": {
18
+ "doc": "./docs",
19
+ "lib": "./lib",
20
+ "dist": "./dist"
21
+ },
22
+ "types": "./docs/types",
23
+ "scripts": {},
24
+ "homepage": "https://stdlib.io",
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git://github.com/stdlib-js/assert-is-object-like.git"
28
+ },
29
+ "bugs": {
30
+ "url": "https://github.com/stdlib-js/stdlib/issues"
31
+ },
32
+ "dependencies": {
33
+ "@stdlib/assert-tools-array-function": "^0.2.2",
34
+ "@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.3"
35
+ },
36
+ "devDependencies": {},
37
+ "engines": {
38
+ "node": ">=0.10.0",
39
+ "npm": ">2.7.0"
40
+ },
41
+ "os": [
42
+ "aix",
43
+ "darwin",
44
+ "freebsd",
45
+ "linux",
46
+ "macos",
47
+ "openbsd",
48
+ "openharmony",
49
+ "sunos",
50
+ "win32",
51
+ "windows"
52
+ ],
53
+ "keywords": [
54
+ "stdlib",
55
+ "stdassert",
56
+ "assertion",
57
+ "assert",
58
+ "utilities",
59
+ "utility",
60
+ "utils",
61
+ "util",
62
+ "type",
63
+ "typeof",
64
+ "object",
65
+ "obj",
66
+ "object-like",
67
+ "is",
68
+ "isobjectlike",
69
+ "check",
70
+ "validate",
71
+ "valid",
72
+ "test",
73
+ "isvalid"
74
+ ],
75
+ "funding": {
76
+ "type": "opencollective",
77
+ "url": "https://opencollective.com/stdlib"
78
+ }
79
+ }