# lodashArkts **Repository Path**: bigup_1/lodash-arkts ## Basic Information - **Project Name**: lodashArkts - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-02 - **Last Updated**: 2024-01-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # @bigup/lodash ## 简介 @bigup/lodash是从js的lodash库迁移过来通过降低 array、number、objects、string 等等的使用难度, 从而让 arkts 变得更简单。 ## 安装 通过 npm: ``` ohpm install @bigup/lodash ``` ## 使用说明 Lodash 的模块化方法 非常适用于: - 遍历 array、object 和 string - 对值进行操作和检测 - 创建符合功能的函数 详细函数可查看文档[lodash](https://www.lodashjs.com/) ## 使用示例 ``` import { add } from "@bigup/lodash" @Entry @Component struct Index { @State message: string = 'Hello World' textClick(){ console.log('test loash add 6+4=',add(6, 4)) } build() { Column() { Column() { Text(`${this.message}`) .width("300vp") .height("60vp") .textAlign(TextAlign.Center) .fontSize("50fp") .fontWeight(FontWeight.Bold) .onClick(()=>this.textClick()) } .width("100%") .height("100%") .justifyContent(FlexAlign.Center) } .width("100%") .height("100%") } } ```