Git Product home page Git Product logo

cyndi's Introduction

Cyndi

GitHub GitHub Workflow Status (with event) Coverage Status GitHub Repo stars

Cyndi 是一个JavaScript工具库。提供一些跨组件库、通用的方法。

主页

github.io主页

使用

1. 安装cyndi

npm i cyndi

2. cyndi依赖的库

lodash

上述依赖,打包时不包含,需要使用的项目自行引入。

功能

getPrefixNs

/**
 * 获取控件css前缀
 * @param componentName 控件名称 {string}
 * @param customizePrefix 用户自定义前缀 {string}
 * @param defaultPrefix 默认前缀 {string}
 * @returns prefix 控件css类前缀 {string}
 */
export declare function getPrefixNs(componentName: string, customizePrefix?: string, defaultPrefix?: string): string;

isEmptyString

/**
 * 检测是否是空字符串
 * @param 需要判断的值 {any}
 * @returns isString 是否是空字符串 {boolean}
 */
export declare function isEmptyString(str: unknown): boolean;

printArrayItem


/**
 * 遍历对象数组,将对象的每个属性输出成字符串,不递归遍历对象属性的子属性
 * @param list 待遍历的数组
 * @returns 遍历后拼装的字符串
 */
export declare function printArrayItem(list?: object[]): string;

如果你想请我喝一杯咖啡(Buy Me a Coffee)

cyndi's People

Contributors

liuxian496 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.