@mjhls/mjh-framework 1.0.99-0.next12 → 1.0.99

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 (356) hide show
  1. package/README.md +172 -168
  2. package/dist/index.es.js +12800 -0
  3. package/dist/index.es.js.map +1 -0
  4. package/dist/index.js +12835 -0
  5. package/dist/index.js.map +1 -0
  6. package/package.json +84 -115
  7. package/dist/cjs/AD.js +0 -32
  8. package/dist/cjs/AD300x250.js +0 -95
  9. package/dist/cjs/AD300x250x600.js +0 -112
  10. package/dist/cjs/AD728x90.js +0 -109
  11. package/dist/cjs/ADFloatingFooter.js +0 -143
  12. package/dist/cjs/ADFooter.js +0 -53
  13. package/dist/cjs/ADGutter.js +0 -115
  14. package/dist/cjs/ADInfeed-cf54cb8a.js +0 -66
  15. package/dist/cjs/ADSkyscraper.js +0 -117
  16. package/dist/cjs/ADSponsoredResources.js +0 -114
  17. package/dist/cjs/ADWebcast.js +0 -119
  18. package/dist/cjs/ADWelcome.js +0 -166
  19. package/dist/cjs/ADlgInfeed-d06624d8.js +0 -60
  20. package/dist/cjs/AccordionPanel.js +0 -94
  21. package/dist/cjs/AdSlot.js +0 -251
  22. package/dist/cjs/AdSlotsProvider.js +0 -183
  23. package/dist/cjs/AlgoliaSearch.js +0 -195
  24. package/dist/cjs/AlphabeticList.js +0 -135
  25. package/dist/cjs/ArticleCarousel.js +0 -46
  26. package/dist/cjs/ArticleProgramLandingPage.js +0 -184
  27. package/dist/cjs/ArticleSeriesLandingPage.js +0 -162
  28. package/dist/cjs/ArticleSeriesListing.js +0 -315
  29. package/dist/cjs/AuthWrapper.js +0 -720
  30. package/dist/cjs/AuthorComponent-39b37d84.js +0 -96
  31. package/dist/cjs/Beam.js +0 -350
  32. package/dist/cjs/BlockContent-36e54d77.js +0 -916
  33. package/dist/cjs/Breadcrumbs.js +0 -107
  34. package/dist/cjs/CMEDeck.js +0 -443
  35. package/dist/cjs/Column1.js +0 -39
  36. package/dist/cjs/Column2.js +0 -75
  37. package/dist/cjs/Column3.js +0 -144
  38. package/dist/cjs/ConferenceArticleCard.js +0 -93
  39. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
  40. package/dist/cjs/ContentCardPaginated.js +0 -417
  41. package/dist/cjs/DeckContent.js +0 -507
  42. package/dist/cjs/DeckQueue.js +0 -403
  43. package/dist/cjs/DeckQueuePaginated.js +0 -348
  44. package/dist/cjs/Dfp-94f8ccdf.js +0 -103
  45. package/dist/cjs/EventsDeck.js +0 -857
  46. package/dist/cjs/ExternalResources.js +0 -217
  47. package/dist/cjs/Feature.js +0 -129
  48. package/dist/cjs/ForbesHero.js +0 -137
  49. package/dist/cjs/GridContent.js +0 -828
  50. package/dist/cjs/GridContentPaginated.js +0 -704
  51. package/dist/cjs/GridHero.js +0 -147
  52. package/dist/cjs/GroupDeck.js +0 -314
  53. package/dist/cjs/HamMagazine.js +0 -602
  54. package/dist/cjs/Header.js +0 -39
  55. package/dist/cjs/HealthCareProfessionalModal.js +0 -78
  56. package/dist/cjs/Hero.js +0 -48
  57. package/dist/cjs/HighlightenVideo.js +0 -69
  58. package/dist/cjs/HorizontalArticleListing.js +0 -165
  59. package/dist/cjs/HorizontalHero.js +0 -111
  60. package/dist/cjs/ImageSlider-a7fb6218.js +0 -182
  61. package/dist/cjs/IssueContentDeck.js +0 -241
  62. package/dist/cjs/IssueDeck.js +0 -268
  63. package/dist/cjs/IssueLanding.js +0 -172
  64. package/dist/cjs/KMTracker.js +0 -27
  65. package/dist/cjs/LeftNav.js +0 -145
  66. package/dist/cjs/MasterDeck.js +0 -555
  67. package/dist/cjs/MasterDeckPaginated.js +0 -469
  68. package/dist/cjs/MediaSeriesCard-36eab8b7.js +0 -9502
  69. package/dist/cjs/MediaSeriesLanding.js +0 -503
  70. package/dist/cjs/MediaSeriesLandingPaginated.js +0 -529
  71. package/dist/cjs/NavDvm.js +0 -245
  72. package/dist/cjs/NavFooter-3dcd99a8.js +0 -66
  73. package/dist/cjs/NavMagazine.js +0 -595
  74. package/dist/cjs/NavNative.js +0 -861
  75. package/dist/cjs/OncliveHero.js +0 -79
  76. package/dist/cjs/OncliveLargeHero.js +0 -241
  77. package/dist/cjs/PageFilter.js +0 -72
  78. package/dist/cjs/Pagination-1e0d5f1d.js +0 -90
  79. package/dist/cjs/PartnerDetailListing.js +0 -326
  80. package/dist/cjs/PartnerDetailListingPaginated.js +0 -318
  81. package/dist/cjs/PdfDownload.js +0 -28
  82. package/dist/cjs/PixelTracking.js +0 -165
  83. package/dist/cjs/PopUpModal.js +0 -58
  84. package/dist/cjs/PtceDeck.js +0 -149
  85. package/dist/cjs/PubSection.js +0 -120
  86. package/dist/cjs/PubToc.js +0 -87
  87. package/dist/cjs/PublicationDeck.js +0 -183
  88. package/dist/cjs/PublicationFeature-be5f3503.js +0 -130
  89. package/dist/cjs/PublicationLanding.js +0 -853
  90. package/dist/cjs/QueueDeckExpanded.js +0 -1540
  91. package/dist/cjs/QueueDeckExpandedPaginated.js +0 -1388
  92. package/dist/cjs/RecentNews.js +0 -91
  93. package/dist/cjs/RelatedContent.js +0 -114
  94. package/dist/cjs/RelatedTopicsDropdown.js +0 -90
  95. package/dist/cjs/RolesDeck.js +0 -94
  96. package/dist/cjs/Schema.js +0 -101
  97. package/dist/cjs/Search.js +0 -66
  98. package/dist/cjs/Segment.js +0 -403
  99. package/dist/cjs/SeriesListingDeck.js +0 -248
  100. package/dist/cjs/SeriesSlider-b94f1dd5.js +0 -332
  101. package/dist/cjs/SetCookie.js +0 -10
  102. package/dist/cjs/SideFooter.js +0 -151
  103. package/dist/cjs/SocialIcons.js +0 -103
  104. package/dist/cjs/SocialSearchComponent-b7faaedc.js +0 -213
  105. package/dist/cjs/SocialShare.js +0 -74
  106. package/dist/cjs/TaxonomyCard.js +0 -253
  107. package/dist/cjs/TaxonomyDescription.js +0 -205
  108. package/dist/cjs/TemplateNormal.js +0 -204
  109. package/dist/cjs/ThumbnailCard.js +0 -59
  110. package/dist/cjs/Ustream.js +0 -156
  111. package/dist/cjs/VerticalHero.js +0 -74
  112. package/dist/cjs/VideoProgramLandingPage.js +0 -260
  113. package/dist/cjs/VideoSeriesCard.js +0 -88
  114. package/dist/cjs/VideoSeriesFilter.js +0 -128
  115. package/dist/cjs/VideoSeriesLandingPage.js +0 -178
  116. package/dist/cjs/VideoSeriesListing.js +0 -422
  117. package/dist/cjs/View.js +0 -2601
  118. package/dist/cjs/YahooHero.js +0 -126
  119. package/dist/cjs/YoutubeGroup.js +0 -371
  120. package/dist/cjs/_commonjsHelpers-06173234.js +0 -25
  121. package/dist/cjs/_is-array-54228b29.js +0 -74
  122. package/dist/cjs/_iter-detect-b1df62f0.js +0 -52
  123. package/dist/cjs/_library-dd23b178.js +0 -5
  124. package/dist/cjs/_object-pie-083f2dd6.js +0 -16
  125. package/dist/cjs/_object-sap-d1978572.js +0 -16
  126. package/dist/cjs/_object-to-array-ce86cae7.js +0 -25
  127. package/dist/cjs/asyncToGenerator-77821af0.js +0 -1395
  128. package/dist/cjs/brightcove-react-player-loader.es-a195642e.js +0 -2232
  129. package/dist/cjs/core.get-iterator-method-5643aa10.js +0 -584
  130. package/dist/cjs/debounce-d4a2369b.js +0 -216
  131. package/dist/cjs/define-property-e8404b64.js +0 -20
  132. package/dist/cjs/defineProperty-9673846a.js +0 -34
  133. package/dist/cjs/entities-3f9d0f2f.js +0 -506
  134. package/dist/cjs/eq-5fc26c07.js +0 -79
  135. package/dist/cjs/extends-7c86182f.js +0 -87
  136. package/dist/cjs/faundadb.js +0 -644
  137. package/dist/cjs/get-5839e5b5.js +0 -920
  138. package/dist/cjs/getContentCategory-f38a4c00.js +0 -11
  139. package/dist/cjs/getKeywords.js +0 -46
  140. package/dist/cjs/getPtceActivities.js +0 -89
  141. package/dist/cjs/getQuery.js +0 -28
  142. package/dist/cjs/getRelatedArticle.js +0 -747
  143. package/dist/cjs/getRootDocGroup.js +0 -62
  144. package/dist/cjs/getSerializers.js +0 -64
  145. package/dist/cjs/getSeriesDetail.js +0 -40
  146. package/dist/cjs/getTargeting-4439c99d.js +0 -164
  147. package/dist/cjs/getTargeting.js +0 -13
  148. package/dist/cjs/iconBase-be4097c0.js +0 -106
  149. package/dist/cjs/index-0e4427c8.js +0 -1683
  150. package/dist/cjs/index-187c967e.js +0 -54
  151. package/dist/cjs/index-7361fa72.js +0 -11305
  152. package/dist/cjs/index-eadd5035.js +0 -613
  153. package/dist/cjs/index-efca863c.js +0 -556
  154. package/dist/cjs/index-f86bb269.js +0 -1571
  155. package/dist/cjs/index.es-f3e47207.js +0 -445
  156. package/dist/cjs/index.esm-2bb721c8.js +0 -96
  157. package/dist/cjs/index.esm-c1e16606.js +0 -13
  158. package/dist/cjs/index.esm-d51c9ac6.js +0 -25
  159. package/dist/cjs/index.esm-d81454e7.js +0 -19
  160. package/dist/cjs/index.js +0 -635
  161. package/dist/cjs/inherits-de66ea16.js +0 -188
  162. package/dist/cjs/isSymbol-03abbdf0.js +0 -209
  163. package/dist/cjs/js.cookie-a511c430.js +0 -160
  164. package/dist/cjs/keys-e982b3fa.js +0 -25
  165. package/dist/cjs/lodash-f0783643.js +0 -17195
  166. package/dist/cjs/main-f1c77adb.js +0 -973
  167. package/dist/cjs/moment-aca40de1.js +0 -5669
  168. package/dist/cjs/react-social-icons-af932527.js +0 -616
  169. package/dist/cjs/slicedToArray-067dd3bc.js +0 -95
  170. package/dist/cjs/smoothscroll-99df7f93.js +0 -438
  171. package/dist/cjs/stringify-f7a37a8d.js +0 -17
  172. package/dist/cjs/style-inject.es-dcee06b6.js +0 -30
  173. package/dist/cjs/timeDifferenceCalc.js +0 -39
  174. package/dist/cjs/toConsumableArray-d7797c2b.js +0 -74
  175. package/dist/cjs/toNumber-5e1fac58.js +0 -104
  176. package/dist/cjs/typeof-567e31ff.js +0 -382
  177. package/dist/cjs/urlFor.js +0 -65
  178. package/dist/cjs/urlForFile-29d3815a.js +0 -24
  179. package/dist/cjs/ustream-api-3819e4aa.js +0 -106
  180. package/dist/cjs/visibility-sensor-eb2c5b69.js +0 -597
  181. package/dist/cjs/web.dom.iterable-d98303e0.js +0 -50
  182. package/dist/esm/AD.js +0 -26
  183. package/dist/esm/AD300x250.js +0 -89
  184. package/dist/esm/AD300x250x600.js +0 -106
  185. package/dist/esm/AD728x90.js +0 -103
  186. package/dist/esm/ADFloatingFooter.js +0 -137
  187. package/dist/esm/ADFooter.js +0 -47
  188. package/dist/esm/ADGutter.js +0 -109
  189. package/dist/esm/ADInfeed-f684cac9.js +0 -59
  190. package/dist/esm/ADSkyscraper.js +0 -111
  191. package/dist/esm/ADSponsoredResources.js +0 -108
  192. package/dist/esm/ADWebcast.js +0 -113
  193. package/dist/esm/ADWelcome.js +0 -160
  194. package/dist/esm/ADlgInfeed-8c438cee.js +0 -54
  195. package/dist/esm/AccordionPanel.js +0 -87
  196. package/dist/esm/AdSlot.js +0 -244
  197. package/dist/esm/AdSlotsProvider.js +0 -176
  198. package/dist/esm/AlgoliaSearch.js +0 -188
  199. package/dist/esm/AlphabeticList.js +0 -129
  200. package/dist/esm/ArticleCarousel.js +0 -40
  201. package/dist/esm/ArticleProgramLandingPage.js +0 -178
  202. package/dist/esm/ArticleSeriesLandingPage.js +0 -156
  203. package/dist/esm/ArticleSeriesListing.js +0 -308
  204. package/dist/esm/AuthWrapper.js +0 -714
  205. package/dist/esm/AuthorComponent-defe68b6.js +0 -90
  206. package/dist/esm/Beam.js +0 -348
  207. package/dist/esm/BlockContent-c99c9a8d.js +0 -909
  208. package/dist/esm/Breadcrumbs.js +0 -100
  209. package/dist/esm/CMEDeck.js +0 -437
  210. package/dist/esm/Column1.js +0 -29
  211. package/dist/esm/Column2.js +0 -65
  212. package/dist/esm/Column3.js +0 -134
  213. package/dist/esm/ConferenceArticleCard.js +0 -87
  214. package/dist/esm/ConferenceBanner-8792ebd2.js +0 -18
  215. package/dist/esm/ContentCardPaginated.js +0 -406
  216. package/dist/esm/DeckContent.js +0 -497
  217. package/dist/esm/DeckQueue.js +0 -393
  218. package/dist/esm/DeckQueuePaginated.js +0 -337
  219. package/dist/esm/Dfp-4b99f79d.js +0 -96
  220. package/dist/esm/EventsDeck.js +0 -844
  221. package/dist/esm/ExternalResources.js +0 -210
  222. package/dist/esm/Feature.js +0 -122
  223. package/dist/esm/ForbesHero.js +0 -131
  224. package/dist/esm/GridContent.js +0 -818
  225. package/dist/esm/GridContentPaginated.js +0 -693
  226. package/dist/esm/GridHero.js +0 -141
  227. package/dist/esm/GroupDeck.js +0 -308
  228. package/dist/esm/HamMagazine.js +0 -590
  229. package/dist/esm/Header.js +0 -30
  230. package/dist/esm/HealthCareProfessionalModal.js +0 -70
  231. package/dist/esm/Hero.js +0 -42
  232. package/dist/esm/HighlightenVideo.js +0 -63
  233. package/dist/esm/HorizontalArticleListing.js +0 -159
  234. package/dist/esm/HorizontalHero.js +0 -105
  235. package/dist/esm/ImageSlider-eab2fe41.js +0 -176
  236. package/dist/esm/IssueContentDeck.js +0 -231
  237. package/dist/esm/IssueDeck.js +0 -258
  238. package/dist/esm/IssueLanding.js +0 -166
  239. package/dist/esm/KMTracker.js +0 -25
  240. package/dist/esm/LeftNav.js +0 -136
  241. package/dist/esm/MasterDeck.js +0 -548
  242. package/dist/esm/MasterDeckPaginated.js +0 -461
  243. package/dist/esm/MediaSeriesCard-99048e65.js +0 -9492
  244. package/dist/esm/MediaSeriesLanding.js +0 -496
  245. package/dist/esm/MediaSeriesLandingPaginated.js +0 -522
  246. package/dist/esm/NavDvm.js +0 -233
  247. package/dist/esm/NavFooter-e27bd93b.js +0 -60
  248. package/dist/esm/NavMagazine.js +0 -583
  249. package/dist/esm/NavNative.js +0 -846
  250. package/dist/esm/OncliveHero.js +0 -73
  251. package/dist/esm/OncliveLargeHero.js +0 -235
  252. package/dist/esm/PageFilter.js +0 -66
  253. package/dist/esm/Pagination-cd21f8c2.js +0 -82
  254. package/dist/esm/PartnerDetailListing.js +0 -320
  255. package/dist/esm/PartnerDetailListingPaginated.js +0 -312
  256. package/dist/esm/PdfDownload.js +0 -22
  257. package/dist/esm/PixelTracking.js +0 -156
  258. package/dist/esm/PopUpModal.js +0 -51
  259. package/dist/esm/PtceDeck.js +0 -143
  260. package/dist/esm/PubSection.js +0 -114
  261. package/dist/esm/PubToc.js +0 -81
  262. package/dist/esm/PublicationDeck.js +0 -173
  263. package/dist/esm/PublicationFeature-03500094.js +0 -121
  264. package/dist/esm/PublicationLanding.js +0 -843
  265. package/dist/esm/QueueDeckExpanded.js +0 -1534
  266. package/dist/esm/QueueDeckExpandedPaginated.js +0 -1382
  267. package/dist/esm/RecentNews.js +0 -85
  268. package/dist/esm/RelatedContent.js +0 -108
  269. package/dist/esm/RelatedTopicsDropdown.js +0 -82
  270. package/dist/esm/RolesDeck.js +0 -84
  271. package/dist/esm/Schema.js +0 -95
  272. package/dist/esm/Search.js +0 -57
  273. package/dist/esm/Segment.js +0 -401
  274. package/dist/esm/SeriesListingDeck.js +0 -242
  275. package/dist/esm/SeriesSlider-609f9d94.js +0 -326
  276. package/dist/esm/SetCookie.js +0 -8
  277. package/dist/esm/SideFooter.js +0 -145
  278. package/dist/esm/SocialIcons.js +0 -97
  279. package/dist/esm/SocialSearchComponent-1d8a9f59.js +0 -204
  280. package/dist/esm/SocialShare.js +0 -67
  281. package/dist/esm/TaxonomyCard.js +0 -243
  282. package/dist/esm/TaxonomyDescription.js +0 -198
  283. package/dist/esm/TemplateNormal.js +0 -197
  284. package/dist/esm/ThumbnailCard.js +0 -52
  285. package/dist/esm/Ustream.js +0 -150
  286. package/dist/esm/VerticalHero.js +0 -68
  287. package/dist/esm/VideoProgramLandingPage.js +0 -251
  288. package/dist/esm/VideoSeriesCard.js +0 -82
  289. package/dist/esm/VideoSeriesFilter.js +0 -122
  290. package/dist/esm/VideoSeriesLandingPage.js +0 -172
  291. package/dist/esm/VideoSeriesListing.js +0 -415
  292. package/dist/esm/View.js +0 -2590
  293. package/dist/esm/YahooHero.js +0 -120
  294. package/dist/esm/YoutubeGroup.js +0 -365
  295. package/dist/esm/_commonjsHelpers-0c4b6f40.js +0 -19
  296. package/dist/esm/_is-array-893ab020.js +0 -71
  297. package/dist/esm/_iter-detect-f089461c.js +0 -48
  298. package/dist/esm/_library-528f1934.js +0 -3
  299. package/dist/esm/_object-pie-133f504a.js +0 -13
  300. package/dist/esm/_object-sap-169d6272.js +0 -14
  301. package/dist/esm/_object-to-array-50a6b9a3.js +0 -23
  302. package/dist/esm/asyncToGenerator-9716ae8d.js +0 -1387
  303. package/dist/esm/brightcove-react-player-loader.es-57a70a56.js +0 -2226
  304. package/dist/esm/core.get-iterator-method-e903ff31.js +0 -547
  305. package/dist/esm/debounce-533d9748.js +0 -214
  306. package/dist/esm/define-property-99e66838.js +0 -18
  307. package/dist/esm/defineProperty-8fa0bc8d.js +0 -32
  308. package/dist/esm/entities-932b50cf.js +0 -503
  309. package/dist/esm/eq-bdcbf886.js +0 -76
  310. package/dist/esm/extends-dc6a71fd.js +0 -83
  311. package/dist/esm/faundadb.js +0 -636
  312. package/dist/esm/get-3c308da4.js +0 -918
  313. package/dist/esm/getContentCategory-15dcc413.js +0 -9
  314. package/dist/esm/getKeywords.js +0 -44
  315. package/dist/esm/getPtceActivities.js +0 -87
  316. package/dist/esm/getQuery.js +0 -26
  317. package/dist/esm/getRelatedArticle.js +0 -745
  318. package/dist/esm/getRootDocGroup.js +0 -60
  319. package/dist/esm/getSerializers.js +0 -58
  320. package/dist/esm/getSeriesDetail.js +0 -38
  321. package/dist/esm/getTargeting-db566006.js +0 -161
  322. package/dist/esm/getTargeting.js +0 -7
  323. package/dist/esm/iconBase-ccc56b97.js +0 -81
  324. package/dist/esm/index-0dbff1d1.js +0 -553
  325. package/dist/esm/index-5cc7b406.js +0 -1674
  326. package/dist/esm/index-755f2cc2.js +0 -605
  327. package/dist/esm/index-79cfd25c.js +0 -1569
  328. package/dist/esm/index-c60f3bb6.js +0 -11284
  329. package/dist/esm/index-c7e2ac95.js +0 -52
  330. package/dist/esm/index.es-a6137319.js +0 -439
  331. package/dist/esm/index.esm-1bd8a0a8.js +0 -18
  332. package/dist/esm/index.esm-37268dca.js +0 -89
  333. package/dist/esm/index.esm-9b042655.js +0 -10
  334. package/dist/esm/index.esm-eb1e8e80.js +0 -14
  335. package/dist/esm/index.js +0 -529
  336. package/dist/esm/inherits-8a801a18.js +0 -179
  337. package/dist/esm/isSymbol-a7e9aafe.js +0 -203
  338. package/dist/esm/js.cookie-6874175c.js +0 -158
  339. package/dist/esm/keys-425c8ab0.js +0 -23
  340. package/dist/esm/lodash-f97fd99a.js +0 -17193
  341. package/dist/esm/main-1894c974.js +0 -961
  342. package/dist/esm/moment-bc12cb97.js +0 -5667
  343. package/dist/esm/react-social-icons-9be47857.js +0 -609
  344. package/dist/esm/slicedToArray-ca2c8b8d.js +0 -92
  345. package/dist/esm/smoothscroll-fa4e3f8c.js +0 -436
  346. package/dist/esm/stringify-c21932b3.js +0 -15
  347. package/dist/esm/style-inject.es-1f59c1d0.js +0 -28
  348. package/dist/esm/timeDifferenceCalc.js +0 -37
  349. package/dist/esm/toConsumableArray-7b1c0e23.js +0 -71
  350. package/dist/esm/toNumber-5aeba6e7.js +0 -102
  351. package/dist/esm/typeof-83d9eb10.js +0 -378
  352. package/dist/esm/urlFor.js +0 -63
  353. package/dist/esm/urlForFile-413f5ddb.js +0 -22
  354. package/dist/esm/ustream-api-41166338.js +0 -104
  355. package/dist/esm/visibility-sensor-72fd8f8b.js +0 -590
  356. package/dist/esm/web.dom.iterable-fdf034f5.js +0 -48
@@ -1,918 +0,0 @@
1
- import { a as isSymbol_1, _ as _root, i as isObject_1, b as _Symbol } from './isSymbol-a7e9aafe.js';
2
- import { i as isFunction_1, e as eq_1 } from './eq-bdcbf886.js';
3
-
4
- /**
5
- * Checks if `value` is classified as an `Array` object.
6
- *
7
- * @static
8
- * @memberOf _
9
- * @since 0.1.0
10
- * @category Lang
11
- * @param {*} value The value to check.
12
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
13
- * @example
14
- *
15
- * _.isArray([1, 2, 3]);
16
- * // => true
17
- *
18
- * _.isArray(document.body.children);
19
- * // => false
20
- *
21
- * _.isArray('abc');
22
- * // => false
23
- *
24
- * _.isArray(_.noop);
25
- * // => false
26
- */
27
- var isArray = Array.isArray;
28
-
29
- var isArray_1 = isArray;
30
-
31
- /** Used to match property names within property paths. */
32
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
33
- reIsPlainProp = /^\w*$/;
34
-
35
- /**
36
- * Checks if `value` is a property name and not a property path.
37
- *
38
- * @private
39
- * @param {*} value The value to check.
40
- * @param {Object} [object] The object to query keys on.
41
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
42
- */
43
- function isKey(value, object) {
44
- if (isArray_1(value)) {
45
- return false;
46
- }
47
- var type = typeof value;
48
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
49
- value == null || isSymbol_1(value)) {
50
- return true;
51
- }
52
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
53
- (object != null && value in Object(object));
54
- }
55
-
56
- var _isKey = isKey;
57
-
58
- /** Used to detect overreaching core-js shims. */
59
- var coreJsData = _root['__core-js_shared__'];
60
-
61
- var _coreJsData = coreJsData;
62
-
63
- /** Used to detect methods masquerading as native. */
64
- var maskSrcKey = (function() {
65
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
66
- return uid ? ('Symbol(src)_1.' + uid) : '';
67
- }());
68
-
69
- /**
70
- * Checks if `func` has its source masked.
71
- *
72
- * @private
73
- * @param {Function} func The function to check.
74
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
75
- */
76
- function isMasked(func) {
77
- return !!maskSrcKey && (maskSrcKey in func);
78
- }
79
-
80
- var _isMasked = isMasked;
81
-
82
- /** Used for built-in method references. */
83
- var funcProto$1 = Function.prototype;
84
-
85
- /** Used to resolve the decompiled source of functions. */
86
- var funcToString$1 = funcProto$1.toString;
87
-
88
- /**
89
- * Converts `func` to its source code.
90
- *
91
- * @private
92
- * @param {Function} func The function to convert.
93
- * @returns {string} Returns the source code.
94
- */
95
- function toSource(func) {
96
- if (func != null) {
97
- try {
98
- return funcToString$1.call(func);
99
- } catch (e) {}
100
- try {
101
- return (func + '');
102
- } catch (e) {}
103
- }
104
- return '';
105
- }
106
-
107
- var _toSource = toSource;
108
-
109
- /**
110
- * Used to match `RegExp`
111
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
112
- */
113
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
114
-
115
- /** Used to detect host constructors (Safari). */
116
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
117
-
118
- /** Used for built-in method references. */
119
- var funcProto = Function.prototype,
120
- objectProto$2 = Object.prototype;
121
-
122
- /** Used to resolve the decompiled source of functions. */
123
- var funcToString = funcProto.toString;
124
-
125
- /** Used to check objects for own properties. */
126
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
127
-
128
- /** Used to detect if a method is native. */
129
- var reIsNative = RegExp('^' +
130
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
131
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
132
- );
133
-
134
- /**
135
- * The base implementation of `_.isNative` without bad shim checks.
136
- *
137
- * @private
138
- * @param {*} value The value to check.
139
- * @returns {boolean} Returns `true` if `value` is a native function,
140
- * else `false`.
141
- */
142
- function baseIsNative(value) {
143
- if (!isObject_1(value) || _isMasked(value)) {
144
- return false;
145
- }
146
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
147
- return pattern.test(_toSource(value));
148
- }
149
-
150
- var _baseIsNative = baseIsNative;
151
-
152
- /**
153
- * Gets the value at `key` of `object`.
154
- *
155
- * @private
156
- * @param {Object} [object] The object to query.
157
- * @param {string} key The key of the property to get.
158
- * @returns {*} Returns the property value.
159
- */
160
- function getValue(object, key) {
161
- return object == null ? undefined : object[key];
162
- }
163
-
164
- var _getValue = getValue;
165
-
166
- /**
167
- * Gets the native function at `key` of `object`.
168
- *
169
- * @private
170
- * @param {Object} object The object to query.
171
- * @param {string} key The key of the method to get.
172
- * @returns {*} Returns the function if it's native, else `undefined`.
173
- */
174
- function getNative(object, key) {
175
- var value = _getValue(object, key);
176
- return _baseIsNative(value) ? value : undefined;
177
- }
178
-
179
- var _getNative = getNative;
180
-
181
- /* Built-in method references that are verified to be native. */
182
- var nativeCreate = _getNative(Object, 'create');
183
-
184
- var _nativeCreate = nativeCreate;
185
-
186
- /**
187
- * Removes all key-value entries from the hash.
188
- *
189
- * @private
190
- * @name clear
191
- * @memberOf Hash
192
- */
193
- function hashClear() {
194
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
195
- this.size = 0;
196
- }
197
-
198
- var _hashClear = hashClear;
199
-
200
- /**
201
- * Removes `key` and its value from the hash.
202
- *
203
- * @private
204
- * @name delete
205
- * @memberOf Hash
206
- * @param {Object} hash The hash to modify.
207
- * @param {string} key The key of the value to remove.
208
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
209
- */
210
- function hashDelete(key) {
211
- var result = this.has(key) && delete this.__data__[key];
212
- this.size -= result ? 1 : 0;
213
- return result;
214
- }
215
-
216
- var _hashDelete = hashDelete;
217
-
218
- /** Used to stand-in for `undefined` hash values. */
219
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
220
-
221
- /** Used for built-in method references. */
222
- var objectProto$1 = Object.prototype;
223
-
224
- /** Used to check objects for own properties. */
225
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
226
-
227
- /**
228
- * Gets the hash value for `key`.
229
- *
230
- * @private
231
- * @name get
232
- * @memberOf Hash
233
- * @param {string} key The key of the value to get.
234
- * @returns {*} Returns the entry value.
235
- */
236
- function hashGet(key) {
237
- var data = this.__data__;
238
- if (_nativeCreate) {
239
- var result = data[key];
240
- return result === HASH_UNDEFINED$1 ? undefined : result;
241
- }
242
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
243
- }
244
-
245
- var _hashGet = hashGet;
246
-
247
- /** Used for built-in method references. */
248
- var objectProto = Object.prototype;
249
-
250
- /** Used to check objects for own properties. */
251
- var hasOwnProperty = objectProto.hasOwnProperty;
252
-
253
- /**
254
- * Checks if a hash value for `key` exists.
255
- *
256
- * @private
257
- * @name has
258
- * @memberOf Hash
259
- * @param {string} key The key of the entry to check.
260
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
261
- */
262
- function hashHas(key) {
263
- var data = this.__data__;
264
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
265
- }
266
-
267
- var _hashHas = hashHas;
268
-
269
- /** Used to stand-in for `undefined` hash values. */
270
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
271
-
272
- /**
273
- * Sets the hash `key` to `value`.
274
- *
275
- * @private
276
- * @name set
277
- * @memberOf Hash
278
- * @param {string} key The key of the value to set.
279
- * @param {*} value The value to set.
280
- * @returns {Object} Returns the hash instance.
281
- */
282
- function hashSet(key, value) {
283
- var data = this.__data__;
284
- this.size += this.has(key) ? 0 : 1;
285
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
286
- return this;
287
- }
288
-
289
- var _hashSet = hashSet;
290
-
291
- /**
292
- * Creates a hash object.
293
- *
294
- * @private
295
- * @constructor
296
- * @param {Array} [entries] The key-value pairs to cache.
297
- */
298
- function Hash(entries) {
299
- var index = -1,
300
- length = entries == null ? 0 : entries.length;
301
-
302
- this.clear();
303
- while (++index < length) {
304
- var entry = entries[index];
305
- this.set(entry[0], entry[1]);
306
- }
307
- }
308
-
309
- // Add methods to `Hash`.
310
- Hash.prototype.clear = _hashClear;
311
- Hash.prototype['delete'] = _hashDelete;
312
- Hash.prototype.get = _hashGet;
313
- Hash.prototype.has = _hashHas;
314
- Hash.prototype.set = _hashSet;
315
-
316
- var _Hash = Hash;
317
-
318
- /**
319
- * Removes all key-value entries from the list cache.
320
- *
321
- * @private
322
- * @name clear
323
- * @memberOf ListCache
324
- */
325
- function listCacheClear() {
326
- this.__data__ = [];
327
- this.size = 0;
328
- }
329
-
330
- var _listCacheClear = listCacheClear;
331
-
332
- /**
333
- * Gets the index at which the `key` is found in `array` of key-value pairs.
334
- *
335
- * @private
336
- * @param {Array} array The array to inspect.
337
- * @param {*} key The key to search for.
338
- * @returns {number} Returns the index of the matched value, else `-1`.
339
- */
340
- function assocIndexOf(array, key) {
341
- var length = array.length;
342
- while (length--) {
343
- if (eq_1(array[length][0], key)) {
344
- return length;
345
- }
346
- }
347
- return -1;
348
- }
349
-
350
- var _assocIndexOf = assocIndexOf;
351
-
352
- /** Used for built-in method references. */
353
- var arrayProto = Array.prototype;
354
-
355
- /** Built-in value references. */
356
- var splice = arrayProto.splice;
357
-
358
- /**
359
- * Removes `key` and its value from the list cache.
360
- *
361
- * @private
362
- * @name delete
363
- * @memberOf ListCache
364
- * @param {string} key The key of the value to remove.
365
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
366
- */
367
- function listCacheDelete(key) {
368
- var data = this.__data__,
369
- index = _assocIndexOf(data, key);
370
-
371
- if (index < 0) {
372
- return false;
373
- }
374
- var lastIndex = data.length - 1;
375
- if (index == lastIndex) {
376
- data.pop();
377
- } else {
378
- splice.call(data, index, 1);
379
- }
380
- --this.size;
381
- return true;
382
- }
383
-
384
- var _listCacheDelete = listCacheDelete;
385
-
386
- /**
387
- * Gets the list cache value for `key`.
388
- *
389
- * @private
390
- * @name get
391
- * @memberOf ListCache
392
- * @param {string} key The key of the value to get.
393
- * @returns {*} Returns the entry value.
394
- */
395
- function listCacheGet(key) {
396
- var data = this.__data__,
397
- index = _assocIndexOf(data, key);
398
-
399
- return index < 0 ? undefined : data[index][1];
400
- }
401
-
402
- var _listCacheGet = listCacheGet;
403
-
404
- /**
405
- * Checks if a list cache value for `key` exists.
406
- *
407
- * @private
408
- * @name has
409
- * @memberOf ListCache
410
- * @param {string} key The key of the entry to check.
411
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
412
- */
413
- function listCacheHas(key) {
414
- return _assocIndexOf(this.__data__, key) > -1;
415
- }
416
-
417
- var _listCacheHas = listCacheHas;
418
-
419
- /**
420
- * Sets the list cache `key` to `value`.
421
- *
422
- * @private
423
- * @name set
424
- * @memberOf ListCache
425
- * @param {string} key The key of the value to set.
426
- * @param {*} value The value to set.
427
- * @returns {Object} Returns the list cache instance.
428
- */
429
- function listCacheSet(key, value) {
430
- var data = this.__data__,
431
- index = _assocIndexOf(data, key);
432
-
433
- if (index < 0) {
434
- ++this.size;
435
- data.push([key, value]);
436
- } else {
437
- data[index][1] = value;
438
- }
439
- return this;
440
- }
441
-
442
- var _listCacheSet = listCacheSet;
443
-
444
- /**
445
- * Creates an list cache object.
446
- *
447
- * @private
448
- * @constructor
449
- * @param {Array} [entries] The key-value pairs to cache.
450
- */
451
- function ListCache(entries) {
452
- var index = -1,
453
- length = entries == null ? 0 : entries.length;
454
-
455
- this.clear();
456
- while (++index < length) {
457
- var entry = entries[index];
458
- this.set(entry[0], entry[1]);
459
- }
460
- }
461
-
462
- // Add methods to `ListCache`.
463
- ListCache.prototype.clear = _listCacheClear;
464
- ListCache.prototype['delete'] = _listCacheDelete;
465
- ListCache.prototype.get = _listCacheGet;
466
- ListCache.prototype.has = _listCacheHas;
467
- ListCache.prototype.set = _listCacheSet;
468
-
469
- var _ListCache = ListCache;
470
-
471
- /* Built-in method references that are verified to be native. */
472
- var Map = _getNative(_root, 'Map');
473
-
474
- var _Map = Map;
475
-
476
- /**
477
- * Removes all key-value entries from the map.
478
- *
479
- * @private
480
- * @name clear
481
- * @memberOf MapCache
482
- */
483
- function mapCacheClear() {
484
- this.size = 0;
485
- this.__data__ = {
486
- 'hash': new _Hash,
487
- 'map': new (_Map || _ListCache),
488
- 'string': new _Hash
489
- };
490
- }
491
-
492
- var _mapCacheClear = mapCacheClear;
493
-
494
- /**
495
- * Checks if `value` is suitable for use as unique object key.
496
- *
497
- * @private
498
- * @param {*} value The value to check.
499
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
500
- */
501
- function isKeyable(value) {
502
- var type = typeof value;
503
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
504
- ? (value !== '__proto__')
505
- : (value === null);
506
- }
507
-
508
- var _isKeyable = isKeyable;
509
-
510
- /**
511
- * Gets the data for `map`.
512
- *
513
- * @private
514
- * @param {Object} map The map to query.
515
- * @param {string} key The reference key.
516
- * @returns {*} Returns the map data.
517
- */
518
- function getMapData(map, key) {
519
- var data = map.__data__;
520
- return _isKeyable(key)
521
- ? data[typeof key == 'string' ? 'string' : 'hash']
522
- : data.map;
523
- }
524
-
525
- var _getMapData = getMapData;
526
-
527
- /**
528
- * Removes `key` and its value from the map.
529
- *
530
- * @private
531
- * @name delete
532
- * @memberOf MapCache
533
- * @param {string} key The key of the value to remove.
534
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
535
- */
536
- function mapCacheDelete(key) {
537
- var result = _getMapData(this, key)['delete'](key);
538
- this.size -= result ? 1 : 0;
539
- return result;
540
- }
541
-
542
- var _mapCacheDelete = mapCacheDelete;
543
-
544
- /**
545
- * Gets the map value for `key`.
546
- *
547
- * @private
548
- * @name get
549
- * @memberOf MapCache
550
- * @param {string} key The key of the value to get.
551
- * @returns {*} Returns the entry value.
552
- */
553
- function mapCacheGet(key) {
554
- return _getMapData(this, key).get(key);
555
- }
556
-
557
- var _mapCacheGet = mapCacheGet;
558
-
559
- /**
560
- * Checks if a map value for `key` exists.
561
- *
562
- * @private
563
- * @name has
564
- * @memberOf MapCache
565
- * @param {string} key The key of the entry to check.
566
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
567
- */
568
- function mapCacheHas(key) {
569
- return _getMapData(this, key).has(key);
570
- }
571
-
572
- var _mapCacheHas = mapCacheHas;
573
-
574
- /**
575
- * Sets the map `key` to `value`.
576
- *
577
- * @private
578
- * @name set
579
- * @memberOf MapCache
580
- * @param {string} key The key of the value to set.
581
- * @param {*} value The value to set.
582
- * @returns {Object} Returns the map cache instance.
583
- */
584
- function mapCacheSet(key, value) {
585
- var data = _getMapData(this, key),
586
- size = data.size;
587
-
588
- data.set(key, value);
589
- this.size += data.size == size ? 0 : 1;
590
- return this;
591
- }
592
-
593
- var _mapCacheSet = mapCacheSet;
594
-
595
- /**
596
- * Creates a map cache object to store key-value pairs.
597
- *
598
- * @private
599
- * @constructor
600
- * @param {Array} [entries] The key-value pairs to cache.
601
- */
602
- function MapCache(entries) {
603
- var index = -1,
604
- length = entries == null ? 0 : entries.length;
605
-
606
- this.clear();
607
- while (++index < length) {
608
- var entry = entries[index];
609
- this.set(entry[0], entry[1]);
610
- }
611
- }
612
-
613
- // Add methods to `MapCache`.
614
- MapCache.prototype.clear = _mapCacheClear;
615
- MapCache.prototype['delete'] = _mapCacheDelete;
616
- MapCache.prototype.get = _mapCacheGet;
617
- MapCache.prototype.has = _mapCacheHas;
618
- MapCache.prototype.set = _mapCacheSet;
619
-
620
- var _MapCache = MapCache;
621
-
622
- /** Error message constants. */
623
- var FUNC_ERROR_TEXT = 'Expected a function';
624
-
625
- /**
626
- * Creates a function that memoizes the result of `func`. If `resolver` is
627
- * provided, it determines the cache key for storing the result based on the
628
- * arguments provided to the memoized function. By default, the first argument
629
- * provided to the memoized function is used as the map cache key. The `func`
630
- * is invoked with the `this` binding of the memoized function.
631
- *
632
- * **Note:** The cache is exposed as the `cache` property on the memoized
633
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
634
- * constructor with one whose instances implement the
635
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
636
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
637
- *
638
- * @static
639
- * @memberOf _
640
- * @since 0.1.0
641
- * @category Function
642
- * @param {Function} func The function to have its output memoized.
643
- * @param {Function} [resolver] The function to resolve the cache key.
644
- * @returns {Function} Returns the new memoized function.
645
- * @example
646
- *
647
- * var object = { 'a': 1, 'b': 2 };
648
- * var other = { 'c': 3, 'd': 4 };
649
- *
650
- * var values = _.memoize(_.values);
651
- * values(object);
652
- * // => [1, 2]
653
- *
654
- * values(other);
655
- * // => [3, 4]
656
- *
657
- * object.a = 2;
658
- * values(object);
659
- * // => [1, 2]
660
- *
661
- * // Modify the result cache.
662
- * values.cache.set(object, ['a', 'b']);
663
- * values(object);
664
- * // => ['a', 'b']
665
- *
666
- * // Replace `_.memoize.Cache`.
667
- * _.memoize.Cache = WeakMap;
668
- */
669
- function memoize(func, resolver) {
670
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
671
- throw new TypeError(FUNC_ERROR_TEXT);
672
- }
673
- var memoized = function() {
674
- var args = arguments,
675
- key = resolver ? resolver.apply(this, args) : args[0],
676
- cache = memoized.cache;
677
-
678
- if (cache.has(key)) {
679
- return cache.get(key);
680
- }
681
- var result = func.apply(this, args);
682
- memoized.cache = cache.set(key, result) || cache;
683
- return result;
684
- };
685
- memoized.cache = new (memoize.Cache || _MapCache);
686
- return memoized;
687
- }
688
-
689
- // Expose `MapCache`.
690
- memoize.Cache = _MapCache;
691
-
692
- var memoize_1 = memoize;
693
-
694
- /** Used as the maximum memoize cache size. */
695
- var MAX_MEMOIZE_SIZE = 500;
696
-
697
- /**
698
- * A specialized version of `_.memoize` which clears the memoized function's
699
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
700
- *
701
- * @private
702
- * @param {Function} func The function to have its output memoized.
703
- * @returns {Function} Returns the new memoized function.
704
- */
705
- function memoizeCapped(func) {
706
- var result = memoize_1(func, function(key) {
707
- if (cache.size === MAX_MEMOIZE_SIZE) {
708
- cache.clear();
709
- }
710
- return key;
711
- });
712
-
713
- var cache = result.cache;
714
- return result;
715
- }
716
-
717
- var _memoizeCapped = memoizeCapped;
718
-
719
- /** Used to match property names within property paths. */
720
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
721
-
722
- /** Used to match backslashes in property paths. */
723
- var reEscapeChar = /\\(\\)?/g;
724
-
725
- /**
726
- * Converts `string` to a property path array.
727
- *
728
- * @private
729
- * @param {string} string The string to convert.
730
- * @returns {Array} Returns the property path array.
731
- */
732
- var stringToPath = _memoizeCapped(function(string) {
733
- var result = [];
734
- if (string.charCodeAt(0) === 46 /* . */) {
735
- result.push('');
736
- }
737
- string.replace(rePropName, function(match, number, quote, subString) {
738
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
739
- });
740
- return result;
741
- });
742
-
743
- var _stringToPath = stringToPath;
744
-
745
- /**
746
- * A specialized version of `_.map` for arrays without support for iteratee
747
- * shorthands.
748
- *
749
- * @private
750
- * @param {Array} [array] The array to iterate over.
751
- * @param {Function} iteratee The function invoked per iteration.
752
- * @returns {Array} Returns the new mapped array.
753
- */
754
- function arrayMap(array, iteratee) {
755
- var index = -1,
756
- length = array == null ? 0 : array.length,
757
- result = Array(length);
758
-
759
- while (++index < length) {
760
- result[index] = iteratee(array[index], index, array);
761
- }
762
- return result;
763
- }
764
-
765
- var _arrayMap = arrayMap;
766
-
767
- /** Used as references for various `Number` constants. */
768
- var INFINITY$1 = 1 / 0;
769
-
770
- /** Used to convert symbols to primitives and strings. */
771
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
772
- symbolToString = symbolProto ? symbolProto.toString : undefined;
773
-
774
- /**
775
- * The base implementation of `_.toString` which doesn't convert nullish
776
- * values to empty strings.
777
- *
778
- * @private
779
- * @param {*} value The value to process.
780
- * @returns {string} Returns the string.
781
- */
782
- function baseToString(value) {
783
- // Exit early for strings to avoid a performance hit in some environments.
784
- if (typeof value == 'string') {
785
- return value;
786
- }
787
- if (isArray_1(value)) {
788
- // Recursively convert values (susceptible to call stack limits).
789
- return _arrayMap(value, baseToString) + '';
790
- }
791
- if (isSymbol_1(value)) {
792
- return symbolToString ? symbolToString.call(value) : '';
793
- }
794
- var result = (value + '');
795
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
796
- }
797
-
798
- var _baseToString = baseToString;
799
-
800
- /**
801
- * Converts `value` to a string. An empty string is returned for `null`
802
- * and `undefined` values. The sign of `-0` is preserved.
803
- *
804
- * @static
805
- * @memberOf _
806
- * @since 4.0.0
807
- * @category Lang
808
- * @param {*} value The value to convert.
809
- * @returns {string} Returns the converted string.
810
- * @example
811
- *
812
- * _.toString(null);
813
- * // => ''
814
- *
815
- * _.toString(-0);
816
- * // => '-0'
817
- *
818
- * _.toString([1, 2, 3]);
819
- * // => '1,2,3'
820
- */
821
- function toString(value) {
822
- return value == null ? '' : _baseToString(value);
823
- }
824
-
825
- var toString_1 = toString;
826
-
827
- /**
828
- * Casts `value` to a path array if it's not one.
829
- *
830
- * @private
831
- * @param {*} value The value to inspect.
832
- * @param {Object} [object] The object to query keys on.
833
- * @returns {Array} Returns the cast property path array.
834
- */
835
- function castPath(value, object) {
836
- if (isArray_1(value)) {
837
- return value;
838
- }
839
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
840
- }
841
-
842
- var _castPath = castPath;
843
-
844
- /** Used as references for various `Number` constants. */
845
- var INFINITY = 1 / 0;
846
-
847
- /**
848
- * Converts `value` to a string key if it's not a string or symbol.
849
- *
850
- * @private
851
- * @param {*} value The value to inspect.
852
- * @returns {string|symbol} Returns the key.
853
- */
854
- function toKey(value) {
855
- if (typeof value == 'string' || isSymbol_1(value)) {
856
- return value;
857
- }
858
- var result = (value + '');
859
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
860
- }
861
-
862
- var _toKey = toKey;
863
-
864
- /**
865
- * The base implementation of `_.get` without support for default values.
866
- *
867
- * @private
868
- * @param {Object} object The object to query.
869
- * @param {Array|string} path The path of the property to get.
870
- * @returns {*} Returns the resolved value.
871
- */
872
- function baseGet(object, path) {
873
- path = _castPath(path, object);
874
-
875
- var index = 0,
876
- length = path.length;
877
-
878
- while (object != null && index < length) {
879
- object = object[_toKey(path[index++])];
880
- }
881
- return (index && index == length) ? object : undefined;
882
- }
883
-
884
- var _baseGet = baseGet;
885
-
886
- /**
887
- * Gets the value at `path` of `object`. If the resolved value is
888
- * `undefined`, the `defaultValue` is returned in its place.
889
- *
890
- * @static
891
- * @memberOf _
892
- * @since 3.7.0
893
- * @category Object
894
- * @param {Object} object The object to query.
895
- * @param {Array|string} path The path of the property to get.
896
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
897
- * @returns {*} Returns the resolved value.
898
- * @example
899
- *
900
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
901
- *
902
- * _.get(object, 'a[0].b.c');
903
- * // => 3
904
- *
905
- * _.get(object, ['a', '0', 'b', 'c']);
906
- * // => 3
907
- *
908
- * _.get(object, 'a.b.c', 'default');
909
- * // => 'default'
910
- */
911
- function get(object, path, defaultValue) {
912
- var result = object == null ? undefined : _baseGet(object, path);
913
- return result === undefined ? defaultValue : result;
914
- }
915
-
916
- var get_1 = get;
917
-
918
- export { get_1 as g };