From 5aedb66fad534971763b7c77e0820144a72472c8 Mon Sep 17 00:00:00 2001 From: tiantian Date: Tue, 9 Jan 2024 19:22:09 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[Issues:=20#I8UV8T]=20=E6=9B=B4=E6=96=B0122?= =?UTF-8?q?4=E7=89=88=E6=9C=AClodash=E8=A1=A8=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1224/lodash.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/1224/lodash.md b/1224/lodash.md index 9dcc9f69..0a27750f 100644 --- a/1224/lodash.md +++ b/1224/lodash.md @@ -70,7 +70,7 @@ lodashStable.findLastIndex(users, 'active'); #### **Collection** -| 名称 | 说明 | 类型 | 是否必填 | 鸿蒙支持 | +| Name | Description | Type | Required | HarmonyOS Support | | ---- | ---- | ---- | -------- | -------- | | find | Iterates over elements of collection, returning the first element predicate returns truthy for | function | NO | yes | | findLast | Iterates over elements of collection from right to left, returning the first element | function | NO | yes | @@ -86,7 +86,7 @@ lodashStable.findLastIndex(users, 'active'); #### **Array** -| 名称 | 说明 | 类型 | 是否必填 | 鸿蒙支持 | +| Name | Description | Type | Required | HarmonyOS Support | | ---- | ---- | ---- | -------- | -------- | | findIndex | This method is like _.find except that it returns the index of the first element predicate returns truthy for instead of the element itself | function | NO | yes | | findLastIndex | This method is like _.findIndex except that it iterates over elements of collection from right to left | function | NO | yes | @@ -98,7 +98,7 @@ lodashStable.findLastIndex(users, 'active'); #### **String** -| 名称 | 说明 | 类型 | 是否必填 | 鸿蒙支持 | +| Name | Description | Type | Required | HarmonyOS Support | | ---- | ---- | ---- | -------- | -------- | | camelCase | Converts string to camel case | function | NO | yes | | repeat | Repeats the given string n times | function | NO | yes | @@ -107,7 +107,7 @@ lodashStable.findLastIndex(users, 'active'); #### **Math** -| 名称 | 说明 | 类型 | 是否必填 | 鸿蒙支持 | +| Name | Description | Type | Required | HarmonyOS Support | | ---- | ---- | ---- | -------- | -------- | | ceil | Computes number rounded up to precision | function | NO | yes | | divide | Divide two numbers. | function | NO | yes | Math | @@ -117,7 +117,7 @@ lodashStable.findLastIndex(users, 'active'); #### **Object** -| 名称 | 说明 | 类型 | 是否必填 | 鸿蒙支持 | +| Name | Description | Type | Required | HarmonyOS Support | | ---- | ---- | ---- | -------- | -------- | | findKey | This method is like _.find, returns the key of the first element | function | NO | yes | | findLastKey | This method is like _.findKey it iterates over elements of a collection in the opposite order | function | NO | yes | @@ -128,7 +128,7 @@ lodashStable.findLastIndex(users, 'active'); #### **Util** -| 名称 | 说明 | 类型 | 是否必填 | 鸿蒙支持 | +| Name | Description | Type | Required | HarmonyOS Support | | ---- | ---- | ---- | -------- | -------- | | range | Creates an array of numbers (positive and/or negative) progressing from start up to, but not including, end | function | NO | yes | | toPath | Converts value to a property path array | function | NO | yes | @@ -136,7 +136,7 @@ lodashStable.findLastIndex(users, 'active'); #### **Lang** -| 名称 | 说明 | 类型 | 是否必填 | 鸿蒙支持 | +| Name | Description | Type | Required | HarmonyOS Support | | ---- | ---- | ---- | -------- | -------- | | isEmpty | Checks if value is an empty object, collection, map, or set | function | NO | yes | | isEqual | Performs a deep comparison between two values to determine if they are equivalent | function | NO | yes | @@ -147,14 +147,14 @@ lodashStable.findLastIndex(users, 'active'); #### **Function** -| 名称 | 说明 | 类型 | 是否必填 | 鸿蒙支持 | +| Name | Description | Type | Required | HarmonyOS Support | | ---- | ---- | ---- | -------- | -------- | | debounce | Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked | function | NO | yes | | throttle | Creates a throttled function that only invokes func at most once per every wait milliseconds | function | NO | yes | #### **Number** -| 名称 | 说明 | 类型 | 是否必填 | 鸿蒙支持 | +| Name | Description | Type | Required | HarmonyOS Support | | ---- | ---- | ---- | -------- | -------- | | clamp | Clamps number within the inclusive lower and upper bounds | function | NO | yes | | random | Produces a random number between the inclusive lower and upper bounds | function | NO | yes | @@ -162,7 +162,7 @@ lodashStable.findLastIndex(users, 'active'); #### **Seq** -| 名称 | 说明 | 类型 | 是否必填 | 鸿蒙支持 | +| Name | Description | Type | Required | HarmonyOS Support | | ---- | ---- | ---- | -------- | -------- | | chain | Creates a lodash wrapper instance that wraps value with explicit method chain sequences enabled | function | NO | yes | -- Gitee From a865df5f423b098b43b01f0b51ad30fae3711368 Mon Sep 17 00:00:00 2001 From: tiantian Date: Wed, 10 Jan 2024 09:40:16 +0800 Subject: [PATCH 2/2] =?UTF-8?q?[Issues:=20#I8UV8T]=20=E6=9B=B4=E6=96=B0122?= =?UTF-8?q?4=E7=89=88=E6=9C=AClodash=E5=AE=89=E8=A3=85=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1224/lodash.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1224/lodash.md b/1224/lodash.md index 0a27750f..8f20d5df 100644 --- a/1224/lodash.md +++ b/1224/lodash.md @@ -16,12 +16,12 @@ #### **yarn** ```bash -yarn add lodash +yarn add lodash@^4.17.21 ``` #### **npm** ```bash -npm install lodash +npm install lodash@4.17.21 ``` -- Gitee