@soul-refiner/design-system 2.0.0-alpha.18 → 2.0.0-alpha.19
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.
- package/dist/_virtual/_cloneBuffer.js +5 -0
- package/dist/_virtual/_commonjsHelpers.js +10 -0
- package/dist/_virtual/_nodeUtil.js +5 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index2.js +5 -0
- package/dist/_virtual/index3.js +5 -0
- package/dist/_virtual/isBuffer.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.min.js +5 -0
- package/dist/_virtual/util.js +5 -0
- package/dist/_virtual/with-selector.development.js +5 -0
- package/dist/_virtual/with-selector.js +5 -0
- package/dist/_virtual/with-selector.production.min.js +5 -0
- package/dist/node_modules/@udecode/plate-alignment/dist/index.js +98 -0
- package/dist/node_modules/@udecode/plate-core/dist/index.js +2656 -0
- package/dist/node_modules/@udecode/plate-link/dist/index.js +585 -0
- package/dist/node_modules/@udecode/plate-media/dist/index.js +211 -0
- package/dist/node_modules/@udecode/plate-normalizers/dist/index.js +20 -0
- package/dist/node_modules/@udecode/plate-resizable/dist/index.js +334 -0
- package/dist/node_modules/@udecode/plate-table/dist/index.js +1371 -0
- package/dist/node_modules/@udecode/plate-utils/dist/index.js +127 -0
- package/dist/node_modules/@udecode/slate/dist/index.js +316 -0
- package/dist/node_modules/@udecode/slate-react/dist/index.js +35 -0
- package/dist/node_modules/@udecode/slate-utils/dist/index.js +230 -0
- package/dist/node_modules/@udecode/utils/dist/index.js +61 -0
- package/dist/node_modules/clsx/dist/clsx.m.js +8 -0
- package/dist/node_modules/dequal/dist/index.js +88 -0
- package/dist/node_modules/immer/dist/immer.js +968 -0
- package/dist/node_modules/is-hotkey/lib/index.js +253 -0
- package/dist/node_modules/jotai/esm/react/utils.js +29 -0
- package/dist/node_modules/jotai/esm/react.js +116 -0
- package/dist/node_modules/jotai/esm/vanilla/utils.js +44 -0
- package/dist/node_modules/jotai/esm/vanilla.js +602 -0
- package/dist/node_modules/jotai-optics/dist/index.modern.js +8 -0
- package/dist/node_modules/jotai-x/dist/index.js +259 -0
- package/dist/node_modules/js-video-url-parser/lib/base.js +9 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/allocine.js +38 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/canalplus.js +50 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/coub.js +58 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/dailymotion.js +74 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/facebook.js +82 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/loom.js +55 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/soundcloud.js +129 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/teachertube.js +114 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/ted.js +100 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/tiktok.js +54 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/twitch.js +154 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/vimeo.js +93 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/wistia.js +116 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/youku.js +87 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/youtube.js +209 -0
- package/dist/node_modules/js-video-url-parser/lib/urlParser.js +88 -0
- package/dist/node_modules/js-video-url-parser/lib/util.js +112 -0
- package/dist/node_modules/lodash/_DataView.js +14 -0
- package/dist/node_modules/lodash/_Hash.js +42 -0
- package/dist/node_modules/lodash/_ListCache.js +42 -0
- package/dist/node_modules/lodash/_Map.js +14 -0
- package/dist/node_modules/lodash/_MapCache.js +42 -0
- package/dist/node_modules/lodash/_Promise.js +14 -0
- package/dist/node_modules/lodash/_Set.js +14 -0
- package/dist/node_modules/lodash/_SetCache.js +35 -0
- package/dist/node_modules/lodash/_Stack.js +38 -0
- package/dist/node_modules/lodash/_Symbol.js +12 -0
- package/dist/node_modules/lodash/_Uint8Array.js +12 -0
- package/dist/node_modules/lodash/_WeakMap.js +14 -0
- package/dist/node_modules/lodash/_apply.js +26 -0
- package/dist/node_modules/lodash/_arrayAggregator.js +27 -0
- package/dist/node_modules/lodash/_arrayEach.js +27 -0
- package/dist/node_modules/lodash/_arrayFilter.js +30 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js +60 -0
- package/dist/node_modules/lodash/_arrayMap.js +26 -0
- package/dist/node_modules/lodash/_arrayPush.js +25 -0
- package/dist/node_modules/lodash/_arraySome.js +28 -0
- package/dist/node_modules/lodash/_assignMergeValue.js +27 -0
- package/dist/node_modules/lodash/_assignValue.js +35 -0
- package/dist/node_modules/lodash/_assocIndexOf.js +27 -0
- package/dist/node_modules/lodash/_baseAggregator.js +27 -0
- package/dist/node_modules/lodash/_baseAssign.js +24 -0
- package/dist/node_modules/lodash/_baseAssignIn.js +24 -0
- package/dist/node_modules/lodash/_baseAssignValue.js +31 -0
- package/dist/node_modules/lodash/_baseClone.js +193 -0
- package/dist/node_modules/lodash/_baseCreate.js +36 -0
- package/dist/node_modules/lodash/_baseEach.js +21 -0
- package/dist/node_modules/lodash/_baseFlatten.js +45 -0
- package/dist/node_modules/lodash/_baseFor.js +22 -0
- package/dist/node_modules/lodash/_baseForOwn.js +23 -0
- package/dist/node_modules/lodash/_baseGet.js +31 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js +27 -0
- package/dist/node_modules/lodash/_baseGetTag.js +36 -0
- package/dist/node_modules/lodash/_baseHasIn.js +18 -0
- package/dist/node_modules/lodash/_baseIsArguments.js +25 -0
- package/dist/node_modules/lodash/_baseIsEqual.js +35 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +96 -0
- package/dist/node_modules/lodash/_baseIsMap.js +25 -0
- package/dist/node_modules/lodash/_baseIsMatch.js +69 -0
- package/dist/node_modules/lodash/_baseIsNative.js +56 -0
- package/dist/node_modules/lodash/_baseIsSet.js +25 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js +68 -0
- package/dist/node_modules/lodash/_baseIteratee.js +41 -0
- package/dist/node_modules/lodash/_baseKeys.js +37 -0
- package/dist/node_modules/lodash/_baseKeysIn.js +41 -0
- package/dist/node_modules/lodash/_baseMap.js +29 -0
- package/dist/node_modules/lodash/_baseMatches.js +30 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js +45 -0
- package/dist/node_modules/lodash/_baseMerge.js +54 -0
- package/dist/node_modules/lodash/_baseMergeDeep.js +114 -0
- package/dist/node_modules/lodash/_baseProperty.js +19 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js +22 -0
- package/dist/node_modules/lodash/_baseRest.js +25 -0
- package/dist/node_modules/lodash/_baseSetToString.js +30 -0
- package/dist/node_modules/lodash/_baseSlice.js +36 -0
- package/dist/node_modules/lodash/_baseTimes.js +25 -0
- package/dist/node_modules/lodash/_baseToString.js +46 -0
- package/dist/node_modules/lodash/_baseUnary.js +19 -0
- package/dist/node_modules/lodash/_baseUnset.js +29 -0
- package/dist/node_modules/lodash/_baseValues.js +25 -0
- package/dist/node_modules/lodash/_cacheHas.js +18 -0
- package/dist/node_modules/lodash/_castPath.js +30 -0
- package/dist/node_modules/lodash/_cloneArrayBuffer.js +22 -0
- package/dist/node_modules/lodash/_cloneBuffer.js +48 -0
- package/dist/node_modules/lodash/_cloneDataView.js +22 -0
- package/dist/node_modules/lodash/_cloneRegExp.js +22 -0
- package/dist/node_modules/lodash/_cloneSymbol.js +24 -0
- package/dist/node_modules/lodash/_cloneTypedArray.js +22 -0
- package/dist/node_modules/lodash/_copyArray.js +25 -0
- package/dist/node_modules/lodash/_copyObject.js +47 -0
- package/dist/node_modules/lodash/_copySymbols.js +23 -0
- package/dist/node_modules/lodash/_copySymbolsIn.js +23 -0
- package/dist/node_modules/lodash/_coreJsData.js +12 -0
- package/dist/node_modules/lodash/_createAggregator.js +32 -0
- package/dist/node_modules/lodash/_createAssigner.js +44 -0
- package/dist/node_modules/lodash/_createBaseEach.js +38 -0
- package/dist/node_modules/lodash/_createBaseFor.js +30 -0
- package/dist/node_modules/lodash/_customDefaultsMerge.js +35 -0
- package/dist/node_modules/lodash/_customOmitClone.js +22 -0
- package/dist/node_modules/lodash/_defineProperty.js +17 -0
- package/dist/node_modules/lodash/_equalArrays.js +92 -0
- package/dist/node_modules/lodash/_equalByTag.js +123 -0
- package/dist/node_modules/lodash/_equalObjects.js +96 -0
- package/dist/node_modules/lodash/_flatRest.js +24 -0
- package/dist/node_modules/lodash/_freeGlobal.js +11 -0
- package/dist/node_modules/lodash/_getAllKeys.js +24 -0
- package/dist/node_modules/lodash/_getAllKeysIn.js +25 -0
- package/dist/node_modules/lodash/_getMapData.js +24 -0
- package/dist/node_modules/lodash/_getMatchData.js +31 -0
- package/dist/node_modules/lodash/_getNative.js +24 -0
- package/dist/node_modules/lodash/_getPrototype.js +12 -0
- package/dist/node_modules/lodash/_getRawTag.js +52 -0
- package/dist/node_modules/lodash/_getSymbols.js +37 -0
- package/dist/node_modules/lodash/_getSymbolsIn.js +34 -0
- package/dist/node_modules/lodash/_getTag.js +70 -0
- package/dist/node_modules/lodash/_getValue.js +18 -0
- package/dist/node_modules/lodash/_hasPath.js +50 -0
- package/dist/node_modules/lodash/_hashClear.js +21 -0
- package/dist/node_modules/lodash/_hashDelete.js +22 -0
- package/dist/node_modules/lodash/_hashGet.js +36 -0
- package/dist/node_modules/lodash/_hashHas.js +29 -0
- package/dist/node_modules/lodash/_hashSet.js +29 -0
- package/dist/node_modules/lodash/_initCloneArray.js +31 -0
- package/dist/node_modules/lodash/_initCloneByTag.js +87 -0
- package/dist/node_modules/lodash/_initCloneObject.js +26 -0
- package/dist/node_modules/lodash/_isFlattenable.js +28 -0
- package/dist/node_modules/lodash/_isIndex.js +30 -0
- package/dist/node_modules/lodash/_isIterateeCall.js +39 -0
- package/dist/node_modules/lodash/_isKey.js +36 -0
- package/dist/node_modules/lodash/_isKeyable.js +20 -0
- package/dist/node_modules/lodash/_isMasked.js +26 -0
- package/dist/node_modules/lodash/_isPrototype.js +23 -0
- package/dist/node_modules/lodash/_isStrictComparable.js +21 -0
- package/dist/node_modules/lodash/_listCacheClear.js +18 -0
- package/dist/node_modules/lodash/_listCacheDelete.js +41 -0
- package/dist/node_modules/lodash/_listCacheGet.js +25 -0
- package/dist/node_modules/lodash/_listCacheHas.js +22 -0
- package/dist/node_modules/lodash/_listCacheSet.js +32 -0
- package/dist/node_modules/lodash/_mapCacheClear.js +29 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js +24 -0
- package/dist/node_modules/lodash/_mapCacheGet.js +22 -0
- package/dist/node_modules/lodash/_mapCacheHas.js +22 -0
- package/dist/node_modules/lodash/_mapCacheSet.js +28 -0
- package/dist/node_modules/lodash/_mapToArray.js +23 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js +25 -0
- package/dist/node_modules/lodash/_memoizeCapped.js +32 -0
- package/dist/node_modules/lodash/_nativeCreate.js +12 -0
- package/dist/node_modules/lodash/_nativeKeys.js +12 -0
- package/dist/node_modules/lodash/_nativeKeysIn.js +25 -0
- package/dist/node_modules/lodash/_nodeUtil.js +43 -0
- package/dist/node_modules/lodash/_objectToString.js +27 -0
- package/dist/node_modules/lodash/_overArg.js +20 -0
- package/dist/node_modules/lodash/_overRest.js +42 -0
- package/dist/node_modules/lodash/_parent.js +23 -0
- package/dist/node_modules/lodash/_root.js +15 -0
- package/dist/node_modules/lodash/_safeGet.js +26 -0
- package/dist/node_modules/lodash/_setCacheAdd.js +24 -0
- package/dist/node_modules/lodash/_setCacheHas.js +19 -0
- package/dist/node_modules/lodash/_setToArray.js +23 -0
- package/dist/node_modules/lodash/_setToString.js +21 -0
- package/dist/node_modules/lodash/_shortOut.js +42 -0
- package/dist/node_modules/lodash/_stackClear.js +21 -0
- package/dist/node_modules/lodash/_stackDelete.js +23 -0
- package/dist/node_modules/lodash/_stackGet.js +19 -0
- package/dist/node_modules/lodash/_stackHas.js +19 -0
- package/dist/node_modules/lodash/_stackSet.js +42 -0
- package/dist/node_modules/lodash/_stringToPath.js +33 -0
- package/dist/node_modules/lodash/_toKey.js +27 -0
- package/dist/node_modules/lodash/_toSource.js +31 -0
- package/dist/node_modules/lodash/castArray.js +55 -0
- package/dist/node_modules/lodash/cloneDeep.js +40 -0
- package/dist/node_modules/lodash/constant.js +31 -0
- package/dist/node_modules/lodash/defaults.js +69 -0
- package/dist/node_modules/lodash/defaultsDeep.js +44 -0
- package/dist/node_modules/lodash/eq.js +42 -0
- package/dist/node_modules/lodash/flatten.js +28 -0
- package/dist/node_modules/lodash/get.js +39 -0
- package/dist/node_modules/lodash/hasIn.js +41 -0
- package/dist/node_modules/lodash/identity.js +26 -0
- package/dist/node_modules/lodash/isArguments.js +43 -0
- package/dist/node_modules/lodash/isArray.js +31 -0
- package/dist/node_modules/lodash/isArrayLike.js +40 -0
- package/dist/node_modules/lodash/isArrayLikeObject.js +40 -0
- package/dist/node_modules/lodash/isBuffer.js +52 -0
- package/dist/node_modules/lodash/isFunction.js +44 -0
- package/dist/node_modules/lodash/isLength.js +40 -0
- package/dist/node_modules/lodash/isMap.js +35 -0
- package/dist/node_modules/lodash/isObject.js +36 -0
- package/dist/node_modules/lodash/isObjectLike.js +34 -0
- package/dist/node_modules/lodash/isPlainObject.js +70 -0
- package/dist/node_modules/lodash/isSet.js +35 -0
- package/dist/node_modules/lodash/isSymbol.js +36 -0
- package/dist/node_modules/lodash/isTypedArray.js +35 -0
- package/dist/node_modules/lodash/keyBy.js +48 -0
- package/dist/node_modules/lodash/keys.js +45 -0
- package/dist/node_modules/lodash/keysIn.js +40 -0
- package/dist/node_modules/lodash/last.js +25 -0
- package/dist/node_modules/lodash/map.js +67 -0
- package/dist/node_modules/lodash/memoize.js +79 -0
- package/dist/node_modules/lodash/merge.js +51 -0
- package/dist/node_modules/lodash/mergeWith.js +46 -0
- package/dist/node_modules/lodash/omit.js +75 -0
- package/dist/node_modules/lodash/property.js +41 -0
- package/dist/node_modules/lodash/stubArray.js +28 -0
- package/dist/node_modules/lodash/stubFalse.js +23 -0
- package/dist/node_modules/lodash/toPlainObject.js +39 -0
- package/dist/node_modules/lodash/toString.js +34 -0
- package/dist/node_modules/lodash/values.js +46 -0
- package/dist/node_modules/lodash.mapvalues/index.js +2290 -0
- package/dist/node_modules/optics-ts/dist/mjs/index.js +31 -0
- package/dist/node_modules/optics-ts/dist/mjs/internals.js +460 -0
- package/dist/node_modules/proxy-compare/dist/index.modern.js +7 -0
- package/dist/node_modules/react-hotkeys-hook/dist/react-hotkeys-hook.esm.js +395 -0
- package/dist/node_modules/react-tracked/dist/index.modern.js +48 -0
- package/dist/node_modules/use-deep-compare/dist-web/index.js +35 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +181 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js +32 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +254 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js +30 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +21 -0
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +19 -0
- package/dist/node_modules/zustand/esm/middleware.js +551 -0
- package/dist/node_modules/zustand/esm/traditional.js +25 -0
- package/dist/node_modules/zustand/esm/vanilla.js +34 -0
- package/dist/node_modules/zustand-x/dist/index.js +217 -0
- package/dist/src/common/styles.js +12 -12
- package/dist/src/components/actions/button/button.js +11 -10
- package/dist/src/components/actions/dropdown/dropdown.js +5 -5
- package/dist/src/components/actions/rate/rate.js +2 -2
- package/dist/src/components/actions/switch/switch.js +3 -3
- package/dist/src/components/actions/toggle/toggle.js +4 -4
- package/dist/src/components/actions/upload/upload.js +3 -3
- package/dist/src/components/atoms/box/box.js +2 -2
- package/dist/src/components/atoms/typography/display.js +2 -2
- package/dist/src/components/atoms/typography/heading.js +2 -2
- package/dist/src/components/atoms/typography/paragraph.js +2 -2
- package/dist/src/components/atoms/typography/typography.js +2 -2
- package/dist/src/components/card/action/action.js +6 -6
- package/dist/src/components/card/audio/audio.js +5 -5
- package/dist/src/components/card/feature/feature.js +7 -7
- package/dist/src/components/card/meeting/meeting.js +6 -6
- package/dist/src/components/card/person/person.js +5 -5
- package/dist/src/components/card/price/price.js +4 -4
- package/dist/src/components/card/regular/regular.js +2 -2
- package/dist/src/components/card/styles.js +2 -2
- package/dist/src/components/card/video/video.js +5 -5
- package/dist/src/components/card/written/written.js +5 -5
- package/dist/src/components/custom/courses_selection/courses_selection.js +5 -5
- package/dist/src/components/custom/users_selection/users_selection.js +6 -6
- package/dist/src/components/editor/editor.js +2 -2
- package/dist/src/components/editor/navbar/alignment_dropdown.js +3 -3
- package/dist/src/components/editor/navbar/button_modal.js +2 -2
- package/dist/src/components/editor/navbar/navbar.js +6 -6
- package/dist/src/components/editor/plugins/blocks/buttons.js +3 -3
- package/dist/src/components/editor/plugins/blocks/image.js +12 -11
- package/dist/src/components/editor/plugins/blocks/list.js +2 -2
- package/dist/src/components/editor/plugins/blocks/media-popover.js +9 -7
- package/dist/src/components/editor/plugins/blocks/qa.js +2 -2
- package/dist/src/components/editor/plugins/blocks/resizable.js +3 -3
- package/dist/src/components/editor/plugins/blocks/table-cell.js +7 -7
- package/dist/src/components/editor/plugins/blocks/table-row.js +2 -2
- package/dist/src/components/editor/plugins/blocks/table.js +16 -14
- package/dist/src/components/editor/plugins/leafs/leafs.js +2 -2
- package/dist/src/components/editor/plugins/leafs/link.js +2 -2
- package/dist/src/components/editor/plugins/plate.js +3 -3
- package/dist/src/components/editor/simple_editor/navbar.js +4 -4
- package/dist/src/components/editor/simple_editor/simple_editor.js +3 -3
- package/dist/src/components/editor/styles/menu_button.js +2 -2
- package/dist/src/components/feedback/animated_toast/animated_toast.js +3 -3
- package/dist/src/components/feedback/badge/badge.js +3 -3
- package/dist/src/components/feedback/banner/banner.js +2 -2
- package/dist/src/components/feedback/chip/chip.js +3 -3
- package/dist/src/components/feedback/loader/loader.js +4 -3
- package/dist/src/components/feedback/notification/notification.js +2 -2
- package/dist/src/components/feedback/progress/progress.js +5 -5
- package/dist/src/components/feedback/toast/toast.js +3 -3
- package/dist/src/components/iconography/avatar/avatar.js +6 -6
- package/dist/src/components/iconography/icon/icon.js +2 -2
- package/dist/src/components/input/calendar/calendar.js +13 -13
- package/dist/src/components/input/checkbox/checkbox.js +2 -2
- package/dist/src/components/input/date/date.js +13 -13
- package/dist/src/components/input/filter/filter.js +11 -10
- package/dist/src/components/input/filter/filter_option.js +3 -3
- package/dist/src/components/input/radio/radio.js +3 -3
- package/dist/src/components/input/search/search.js +4 -4
- package/dist/src/components/input/select/select.js +3 -3
- package/dist/src/components/input/text_area/text_area.js +6 -6
- package/dist/src/components/input/text_input/text_input.js +7 -7
- package/dist/src/components/input/time/time.js +3 -3
- package/dist/src/components/media/video-player/playlist-item.js +3 -3
- package/dist/src/components/media/video-player/video.js +6 -6
- package/dist/src/components/navigation/breadcrumb/breadcrumb.js +3 -3
- package/dist/src/components/navigation/inner/inner.js +8 -8
- package/dist/src/components/navigation/tabs/tabs.js +4 -4
- package/dist/src/components/surfaces/accordion/accordion.js +3 -3
- package/dist/src/components/surfaces/calendar_date/calendar_date.js +6 -6
- package/dist/src/components/surfaces/carousel/card/card.js +4 -4
- package/dist/src/components/surfaces/comment/comment.js +10 -10
- package/dist/src/components/surfaces/drawer/drawer.js +6 -6
- package/dist/src/components/surfaces/message/message.js +2 -2
- package/dist/src/components/surfaces/modal/modal.js +3 -3
- package/dist/src/components/surfaces/post/post.js +9 -9
- package/dist/src/components/table/table/table.js +7 -7
- package/dist/src/index.js +0 -1
- package/package.json +2 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _baseHasIn = require('./_baseHasIn.js');
|
|
4
|
+
var _hasPath = require('./_hasPath.js');
|
|
5
|
+
|
|
6
|
+
var baseHasIn = _baseHasIn._baseHasIn,
|
|
7
|
+
hasPath = _hasPath._hasPath;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Checks if `path` is a direct or inherited property of `object`.
|
|
11
|
+
*
|
|
12
|
+
* @static
|
|
13
|
+
* @memberOf _
|
|
14
|
+
* @since 4.0.0
|
|
15
|
+
* @category Object
|
|
16
|
+
* @param {Object} object The object to query.
|
|
17
|
+
* @param {Array|string} path The path to check.
|
|
18
|
+
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
|
19
|
+
* @example
|
|
20
|
+
*
|
|
21
|
+
* var object = _.create({ 'a': _.create({ 'b': 2 }) });
|
|
22
|
+
*
|
|
23
|
+
* _.hasIn(object, 'a');
|
|
24
|
+
* // => true
|
|
25
|
+
*
|
|
26
|
+
* _.hasIn(object, 'a.b');
|
|
27
|
+
* // => true
|
|
28
|
+
*
|
|
29
|
+
* _.hasIn(object, ['a', 'b']);
|
|
30
|
+
* // => true
|
|
31
|
+
*
|
|
32
|
+
* _.hasIn(object, 'b');
|
|
33
|
+
* // => false
|
|
34
|
+
*/
|
|
35
|
+
function hasIn(object, path) {
|
|
36
|
+
return object != null && hasPath(object, path, baseHasIn);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
var hasIn_1 = hasIn;
|
|
40
|
+
|
|
41
|
+
exports.hasIn_1 = hasIn_1;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This method returns the first argument it receives.
|
|
5
|
+
*
|
|
6
|
+
* @static
|
|
7
|
+
* @since 0.1.0
|
|
8
|
+
* @memberOf _
|
|
9
|
+
* @category Util
|
|
10
|
+
* @param {*} value Any value.
|
|
11
|
+
* @returns {*} Returns `value`.
|
|
12
|
+
* @example
|
|
13
|
+
*
|
|
14
|
+
* var object = { 'a': 1 };
|
|
15
|
+
*
|
|
16
|
+
* console.log(_.identity(object) === object);
|
|
17
|
+
* // => true
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
function identity(value) {
|
|
21
|
+
return value;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
var identity_1 = identity;
|
|
25
|
+
|
|
26
|
+
exports.identity_1 = identity_1;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _baseIsArguments = require('./_baseIsArguments.js');
|
|
4
|
+
var isObjectLike$1 = require('./isObjectLike.js');
|
|
5
|
+
|
|
6
|
+
var baseIsArguments = _baseIsArguments._baseIsArguments,
|
|
7
|
+
isObjectLike = isObjectLike$1.isObjectLike_1;
|
|
8
|
+
|
|
9
|
+
/** Used for built-in method references. */
|
|
10
|
+
var objectProto = Object.prototype;
|
|
11
|
+
|
|
12
|
+
/** Used to check objects for own properties. */
|
|
13
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
14
|
+
|
|
15
|
+
/** Built-in value references. */
|
|
16
|
+
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Checks if `value` is likely an `arguments` object.
|
|
20
|
+
*
|
|
21
|
+
* @static
|
|
22
|
+
* @memberOf _
|
|
23
|
+
* @since 0.1.0
|
|
24
|
+
* @category Lang
|
|
25
|
+
* @param {*} value The value to check.
|
|
26
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
27
|
+
* else `false`.
|
|
28
|
+
* @example
|
|
29
|
+
*
|
|
30
|
+
* _.isArguments(function() { return arguments; }());
|
|
31
|
+
* // => true
|
|
32
|
+
*
|
|
33
|
+
* _.isArguments([1, 2, 3]);
|
|
34
|
+
* // => false
|
|
35
|
+
*/
|
|
36
|
+
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
37
|
+
return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
|
|
38
|
+
!propertyIsEnumerable.call(value, 'callee');
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
var isArguments_1 = isArguments;
|
|
42
|
+
|
|
43
|
+
exports.isArguments_1 = isArguments_1;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Checks if `value` is classified as an `Array` object.
|
|
5
|
+
*
|
|
6
|
+
* @static
|
|
7
|
+
* @memberOf _
|
|
8
|
+
* @since 0.1.0
|
|
9
|
+
* @category Lang
|
|
10
|
+
* @param {*} value The value to check.
|
|
11
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
12
|
+
* @example
|
|
13
|
+
*
|
|
14
|
+
* _.isArray([1, 2, 3]);
|
|
15
|
+
* // => true
|
|
16
|
+
*
|
|
17
|
+
* _.isArray(document.body.children);
|
|
18
|
+
* // => false
|
|
19
|
+
*
|
|
20
|
+
* _.isArray('abc');
|
|
21
|
+
* // => false
|
|
22
|
+
*
|
|
23
|
+
* _.isArray(_.noop);
|
|
24
|
+
* // => false
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
var isArray = Array.isArray;
|
|
28
|
+
|
|
29
|
+
var isArray_1 = isArray;
|
|
30
|
+
|
|
31
|
+
exports.isArray_1 = isArray_1;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var isFunction$1 = require('./isFunction.js');
|
|
4
|
+
var isLength$1 = require('./isLength.js');
|
|
5
|
+
|
|
6
|
+
var isFunction = isFunction$1.isFunction_1,
|
|
7
|
+
isLength = isLength$1.isLength_1;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
11
|
+
* not a function and has a `value.length` that's an integer greater than or
|
|
12
|
+
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
13
|
+
*
|
|
14
|
+
* @static
|
|
15
|
+
* @memberOf _
|
|
16
|
+
* @since 4.0.0
|
|
17
|
+
* @category Lang
|
|
18
|
+
* @param {*} value The value to check.
|
|
19
|
+
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
20
|
+
* @example
|
|
21
|
+
*
|
|
22
|
+
* _.isArrayLike([1, 2, 3]);
|
|
23
|
+
* // => true
|
|
24
|
+
*
|
|
25
|
+
* _.isArrayLike(document.body.children);
|
|
26
|
+
* // => true
|
|
27
|
+
*
|
|
28
|
+
* _.isArrayLike('abc');
|
|
29
|
+
* // => true
|
|
30
|
+
*
|
|
31
|
+
* _.isArrayLike(_.noop);
|
|
32
|
+
* // => false
|
|
33
|
+
*/
|
|
34
|
+
function isArrayLike(value) {
|
|
35
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
var isArrayLike_1 = isArrayLike;
|
|
39
|
+
|
|
40
|
+
exports.isArrayLike_1 = isArrayLike_1;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var isArrayLike$1 = require('./isArrayLike.js');
|
|
4
|
+
var isObjectLike$1 = require('./isObjectLike.js');
|
|
5
|
+
|
|
6
|
+
var isArrayLike = isArrayLike$1.isArrayLike_1,
|
|
7
|
+
isObjectLike = isObjectLike$1.isObjectLike_1;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
11
|
+
* is an object.
|
|
12
|
+
*
|
|
13
|
+
* @static
|
|
14
|
+
* @memberOf _
|
|
15
|
+
* @since 4.0.0
|
|
16
|
+
* @category Lang
|
|
17
|
+
* @param {*} value The value to check.
|
|
18
|
+
* @returns {boolean} Returns `true` if `value` is an array-like object,
|
|
19
|
+
* else `false`.
|
|
20
|
+
* @example
|
|
21
|
+
*
|
|
22
|
+
* _.isArrayLikeObject([1, 2, 3]);
|
|
23
|
+
* // => true
|
|
24
|
+
*
|
|
25
|
+
* _.isArrayLikeObject(document.body.children);
|
|
26
|
+
* // => true
|
|
27
|
+
*
|
|
28
|
+
* _.isArrayLikeObject('abc');
|
|
29
|
+
* // => false
|
|
30
|
+
*
|
|
31
|
+
* _.isArrayLikeObject(_.noop);
|
|
32
|
+
* // => false
|
|
33
|
+
*/
|
|
34
|
+
function isArrayLikeObject(value) {
|
|
35
|
+
return isObjectLike(value) && isArrayLike(value);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
var isArrayLikeObject_1 = isArrayLikeObject;
|
|
39
|
+
|
|
40
|
+
exports.isArrayLikeObject_1 = isArrayLikeObject_1;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var isBuffer = require('../../_virtual/isBuffer.js');
|
|
4
|
+
var _root = require('./_root.js');
|
|
5
|
+
var stubFalse = require('./stubFalse.js');
|
|
6
|
+
|
|
7
|
+
isBuffer.__module.exports;
|
|
8
|
+
|
|
9
|
+
(function (module, exports) {
|
|
10
|
+
var root = _root._root,
|
|
11
|
+
stubFalse$1 = stubFalse.stubFalse_1;
|
|
12
|
+
|
|
13
|
+
/** Detect free variable `exports`. */
|
|
14
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
15
|
+
|
|
16
|
+
/** Detect free variable `module`. */
|
|
17
|
+
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
18
|
+
|
|
19
|
+
/** Detect the popular CommonJS extension `module.exports`. */
|
|
20
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
21
|
+
|
|
22
|
+
/** Built-in value references. */
|
|
23
|
+
var Buffer = moduleExports ? root.Buffer : undefined;
|
|
24
|
+
|
|
25
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
26
|
+
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Checks if `value` is a buffer.
|
|
30
|
+
*
|
|
31
|
+
* @static
|
|
32
|
+
* @memberOf _
|
|
33
|
+
* @since 4.3.0
|
|
34
|
+
* @category Lang
|
|
35
|
+
* @param {*} value The value to check.
|
|
36
|
+
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
37
|
+
* @example
|
|
38
|
+
*
|
|
39
|
+
* _.isBuffer(new Buffer(2));
|
|
40
|
+
* // => true
|
|
41
|
+
*
|
|
42
|
+
* _.isBuffer(new Uint8Array(2));
|
|
43
|
+
* // => false
|
|
44
|
+
*/
|
|
45
|
+
var isBuffer = nativeIsBuffer || stubFalse$1;
|
|
46
|
+
|
|
47
|
+
module.exports = isBuffer;
|
|
48
|
+
} (isBuffer.__module, isBuffer.__module.exports));
|
|
49
|
+
|
|
50
|
+
var isBufferExports = isBuffer.__module.exports;
|
|
51
|
+
|
|
52
|
+
exports.isBufferExports = isBufferExports;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _baseGetTag = require('./_baseGetTag.js');
|
|
4
|
+
var isObject$1 = require('./isObject.js');
|
|
5
|
+
|
|
6
|
+
var baseGetTag = _baseGetTag._baseGetTag,
|
|
7
|
+
isObject = isObject$1.isObject_1;
|
|
8
|
+
|
|
9
|
+
/** `Object#toString` result references. */
|
|
10
|
+
var asyncTag = '[object AsyncFunction]',
|
|
11
|
+
funcTag = '[object Function]',
|
|
12
|
+
genTag = '[object GeneratorFunction]',
|
|
13
|
+
proxyTag = '[object Proxy]';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Checks if `value` is classified as a `Function` object.
|
|
17
|
+
*
|
|
18
|
+
* @static
|
|
19
|
+
* @memberOf _
|
|
20
|
+
* @since 0.1.0
|
|
21
|
+
* @category Lang
|
|
22
|
+
* @param {*} value The value to check.
|
|
23
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
24
|
+
* @example
|
|
25
|
+
*
|
|
26
|
+
* _.isFunction(_);
|
|
27
|
+
* // => true
|
|
28
|
+
*
|
|
29
|
+
* _.isFunction(/abc/);
|
|
30
|
+
* // => false
|
|
31
|
+
*/
|
|
32
|
+
function isFunction(value) {
|
|
33
|
+
if (!isObject(value)) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
37
|
+
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
38
|
+
var tag = baseGetTag(value);
|
|
39
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
var isFunction_1 = isFunction;
|
|
43
|
+
|
|
44
|
+
exports.isFunction_1 = isFunction_1;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/** Used as references for various `Number` constants. */
|
|
4
|
+
|
|
5
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Checks if `value` is a valid array-like length.
|
|
9
|
+
*
|
|
10
|
+
* **Note:** This method is loosely based on
|
|
11
|
+
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
12
|
+
*
|
|
13
|
+
* @static
|
|
14
|
+
* @memberOf _
|
|
15
|
+
* @since 4.0.0
|
|
16
|
+
* @category Lang
|
|
17
|
+
* @param {*} value The value to check.
|
|
18
|
+
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
19
|
+
* @example
|
|
20
|
+
*
|
|
21
|
+
* _.isLength(3);
|
|
22
|
+
* // => true
|
|
23
|
+
*
|
|
24
|
+
* _.isLength(Number.MIN_VALUE);
|
|
25
|
+
* // => false
|
|
26
|
+
*
|
|
27
|
+
* _.isLength(Infinity);
|
|
28
|
+
* // => false
|
|
29
|
+
*
|
|
30
|
+
* _.isLength('3');
|
|
31
|
+
* // => false
|
|
32
|
+
*/
|
|
33
|
+
function isLength(value) {
|
|
34
|
+
return typeof value == 'number' &&
|
|
35
|
+
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
var isLength_1 = isLength;
|
|
39
|
+
|
|
40
|
+
exports.isLength_1 = isLength_1;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _baseIsMap = require('./_baseIsMap.js');
|
|
4
|
+
var _baseUnary = require('./_baseUnary.js');
|
|
5
|
+
var _nodeUtil = require('./_nodeUtil.js');
|
|
6
|
+
|
|
7
|
+
var baseIsMap = _baseIsMap._baseIsMap,
|
|
8
|
+
baseUnary = _baseUnary._baseUnary,
|
|
9
|
+
nodeUtil = _nodeUtil._nodeUtilExports;
|
|
10
|
+
|
|
11
|
+
/* Node.js helper references. */
|
|
12
|
+
var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Checks if `value` is classified as a `Map` object.
|
|
16
|
+
*
|
|
17
|
+
* @static
|
|
18
|
+
* @memberOf _
|
|
19
|
+
* @since 4.3.0
|
|
20
|
+
* @category Lang
|
|
21
|
+
* @param {*} value The value to check.
|
|
22
|
+
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
23
|
+
* @example
|
|
24
|
+
*
|
|
25
|
+
* _.isMap(new Map);
|
|
26
|
+
* // => true
|
|
27
|
+
*
|
|
28
|
+
* _.isMap(new WeakMap);
|
|
29
|
+
* // => false
|
|
30
|
+
*/
|
|
31
|
+
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
32
|
+
|
|
33
|
+
var isMap_1 = isMap;
|
|
34
|
+
|
|
35
|
+
exports.isMap_1 = isMap_1;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Checks if `value` is the
|
|
5
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
6
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
7
|
+
*
|
|
8
|
+
* @static
|
|
9
|
+
* @memberOf _
|
|
10
|
+
* @since 0.1.0
|
|
11
|
+
* @category Lang
|
|
12
|
+
* @param {*} value The value to check.
|
|
13
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
14
|
+
* @example
|
|
15
|
+
*
|
|
16
|
+
* _.isObject({});
|
|
17
|
+
* // => true
|
|
18
|
+
*
|
|
19
|
+
* _.isObject([1, 2, 3]);
|
|
20
|
+
* // => true
|
|
21
|
+
*
|
|
22
|
+
* _.isObject(_.noop);
|
|
23
|
+
* // => true
|
|
24
|
+
*
|
|
25
|
+
* _.isObject(null);
|
|
26
|
+
* // => false
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
function isObject(value) {
|
|
30
|
+
var type = typeof value;
|
|
31
|
+
return value != null && (type == 'object' || type == 'function');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
var isObject_1 = isObject;
|
|
35
|
+
|
|
36
|
+
exports.isObject_1 = isObject_1;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
5
|
+
* and has a `typeof` result of "object".
|
|
6
|
+
*
|
|
7
|
+
* @static
|
|
8
|
+
* @memberOf _
|
|
9
|
+
* @since 4.0.0
|
|
10
|
+
* @category Lang
|
|
11
|
+
* @param {*} value The value to check.
|
|
12
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
13
|
+
* @example
|
|
14
|
+
*
|
|
15
|
+
* _.isObjectLike({});
|
|
16
|
+
* // => true
|
|
17
|
+
*
|
|
18
|
+
* _.isObjectLike([1, 2, 3]);
|
|
19
|
+
* // => true
|
|
20
|
+
*
|
|
21
|
+
* _.isObjectLike(_.noop);
|
|
22
|
+
* // => false
|
|
23
|
+
*
|
|
24
|
+
* _.isObjectLike(null);
|
|
25
|
+
* // => false
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
function isObjectLike(value) {
|
|
29
|
+
return value != null && typeof value == 'object';
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
var isObjectLike_1 = isObjectLike;
|
|
33
|
+
|
|
34
|
+
exports.isObjectLike_1 = isObjectLike_1;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _baseGetTag = require('./_baseGetTag.js');
|
|
4
|
+
var _getPrototype = require('./_getPrototype.js');
|
|
5
|
+
var isObjectLike$1 = require('./isObjectLike.js');
|
|
6
|
+
|
|
7
|
+
var baseGetTag = _baseGetTag._baseGetTag,
|
|
8
|
+
getPrototype = _getPrototype._getPrototype,
|
|
9
|
+
isObjectLike = isObjectLike$1.isObjectLike_1;
|
|
10
|
+
|
|
11
|
+
/** `Object#toString` result references. */
|
|
12
|
+
var objectTag = '[object Object]';
|
|
13
|
+
|
|
14
|
+
/** Used for built-in method references. */
|
|
15
|
+
var funcProto = Function.prototype,
|
|
16
|
+
objectProto = Object.prototype;
|
|
17
|
+
|
|
18
|
+
/** Used to resolve the decompiled source of functions. */
|
|
19
|
+
var funcToString = funcProto.toString;
|
|
20
|
+
|
|
21
|
+
/** Used to check objects for own properties. */
|
|
22
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
23
|
+
|
|
24
|
+
/** Used to infer the `Object` constructor. */
|
|
25
|
+
var objectCtorString = funcToString.call(Object);
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Checks if `value` is a plain object, that is, an object created by the
|
|
29
|
+
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
30
|
+
*
|
|
31
|
+
* @static
|
|
32
|
+
* @memberOf _
|
|
33
|
+
* @since 0.8.0
|
|
34
|
+
* @category Lang
|
|
35
|
+
* @param {*} value The value to check.
|
|
36
|
+
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
37
|
+
* @example
|
|
38
|
+
*
|
|
39
|
+
* function Foo() {
|
|
40
|
+
* this.a = 1;
|
|
41
|
+
* }
|
|
42
|
+
*
|
|
43
|
+
* _.isPlainObject(new Foo);
|
|
44
|
+
* // => false
|
|
45
|
+
*
|
|
46
|
+
* _.isPlainObject([1, 2, 3]);
|
|
47
|
+
* // => false
|
|
48
|
+
*
|
|
49
|
+
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
50
|
+
* // => true
|
|
51
|
+
*
|
|
52
|
+
* _.isPlainObject(Object.create(null));
|
|
53
|
+
* // => true
|
|
54
|
+
*/
|
|
55
|
+
function isPlainObject(value) {
|
|
56
|
+
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
var proto = getPrototype(value);
|
|
60
|
+
if (proto === null) {
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
64
|
+
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
|
|
65
|
+
funcToString.call(Ctor) == objectCtorString;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
var isPlainObject_1 = isPlainObject;
|
|
69
|
+
|
|
70
|
+
exports.isPlainObject_1 = isPlainObject_1;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _baseIsSet = require('./_baseIsSet.js');
|
|
4
|
+
var _baseUnary = require('./_baseUnary.js');
|
|
5
|
+
var _nodeUtil = require('./_nodeUtil.js');
|
|
6
|
+
|
|
7
|
+
var baseIsSet = _baseIsSet._baseIsSet,
|
|
8
|
+
baseUnary = _baseUnary._baseUnary,
|
|
9
|
+
nodeUtil = _nodeUtil._nodeUtilExports;
|
|
10
|
+
|
|
11
|
+
/* Node.js helper references. */
|
|
12
|
+
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Checks if `value` is classified as a `Set` object.
|
|
16
|
+
*
|
|
17
|
+
* @static
|
|
18
|
+
* @memberOf _
|
|
19
|
+
* @since 4.3.0
|
|
20
|
+
* @category Lang
|
|
21
|
+
* @param {*} value The value to check.
|
|
22
|
+
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
23
|
+
* @example
|
|
24
|
+
*
|
|
25
|
+
* _.isSet(new Set);
|
|
26
|
+
* // => true
|
|
27
|
+
*
|
|
28
|
+
* _.isSet(new WeakSet);
|
|
29
|
+
* // => false
|
|
30
|
+
*/
|
|
31
|
+
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
32
|
+
|
|
33
|
+
var isSet_1 = isSet;
|
|
34
|
+
|
|
35
|
+
exports.isSet_1 = isSet_1;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _baseGetTag = require('./_baseGetTag.js');
|
|
4
|
+
var isObjectLike$1 = require('./isObjectLike.js');
|
|
5
|
+
|
|
6
|
+
var baseGetTag = _baseGetTag._baseGetTag,
|
|
7
|
+
isObjectLike = isObjectLike$1.isObjectLike_1;
|
|
8
|
+
|
|
9
|
+
/** `Object#toString` result references. */
|
|
10
|
+
var symbolTag = '[object Symbol]';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
14
|
+
*
|
|
15
|
+
* @static
|
|
16
|
+
* @memberOf _
|
|
17
|
+
* @since 4.0.0
|
|
18
|
+
* @category Lang
|
|
19
|
+
* @param {*} value The value to check.
|
|
20
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
21
|
+
* @example
|
|
22
|
+
*
|
|
23
|
+
* _.isSymbol(Symbol.iterator);
|
|
24
|
+
* // => true
|
|
25
|
+
*
|
|
26
|
+
* _.isSymbol('abc');
|
|
27
|
+
* // => false
|
|
28
|
+
*/
|
|
29
|
+
function isSymbol(value) {
|
|
30
|
+
return typeof value == 'symbol' ||
|
|
31
|
+
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
var isSymbol_1 = isSymbol;
|
|
35
|
+
|
|
36
|
+
exports.isSymbol_1 = isSymbol_1;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _baseIsTypedArray = require('./_baseIsTypedArray.js');
|
|
4
|
+
var _baseUnary = require('./_baseUnary.js');
|
|
5
|
+
var _nodeUtil = require('./_nodeUtil.js');
|
|
6
|
+
|
|
7
|
+
var baseIsTypedArray = _baseIsTypedArray._baseIsTypedArray,
|
|
8
|
+
baseUnary = _baseUnary._baseUnary,
|
|
9
|
+
nodeUtil = _nodeUtil._nodeUtilExports;
|
|
10
|
+
|
|
11
|
+
/* Node.js helper references. */
|
|
12
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Checks if `value` is classified as a typed array.
|
|
16
|
+
*
|
|
17
|
+
* @static
|
|
18
|
+
* @memberOf _
|
|
19
|
+
* @since 3.0.0
|
|
20
|
+
* @category Lang
|
|
21
|
+
* @param {*} value The value to check.
|
|
22
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
23
|
+
* @example
|
|
24
|
+
*
|
|
25
|
+
* _.isTypedArray(new Uint8Array);
|
|
26
|
+
* // => true
|
|
27
|
+
*
|
|
28
|
+
* _.isTypedArray([]);
|
|
29
|
+
* // => false
|
|
30
|
+
*/
|
|
31
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
32
|
+
|
|
33
|
+
var isTypedArray_1 = isTypedArray;
|
|
34
|
+
|
|
35
|
+
exports.isTypedArray_1 = isTypedArray_1;
|