![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
chimee-helper-utils
Advanced tools
utils of chimee
npm install chimee-helper-utils --save
if you are using flow
, you should import our flow defination, by adding this to your .flowconfig
.
[ignore]
[include]
[libs]
./node_modules/chimee-helper-utils/lib/index.flow.js
[options]
[lints]
check if the code running in browser environment (not include worker env)
Returns Boolean
转变一个类数组对象为数组
Parameters
obj
anyReturns Array<any>
sort Object attributes by function and transfer them into array
Parameters
Returns Array the sorted attirbutes array
run a queue one by one.If include function reject or return false it will stop
Parameters
queue
Array the queue which we want to run one by oneargs
...anyReturns Promise tell us whether a queue run finished
run a queue one by one.If include function return false it will stop
Parameters
queue
Array the queue which we want to run one by oneargs
...anyReturns boolean tell the user if the queue run finished
函数节流(控制函数执行频率)
Parameters
Returns Number wait 等待时长
Returns Object options { leading<是否首次调用立即执行,否:则按wait设定等待到期后调用才执行>:false, trailing<是否在调用并未到期时启用定时器,以保证一定执行>:true }
Returns Object cxt 上下文对象
Returns Function
追加样式代码到head的style标签,不存在则创建
Parameters
cssText
String 样式文本Returns HTMLElement
格式化日期对象为:年-月-日 时:分:秒.毫秒
Parameters
date
Date Date日期对象 (optional, default new Date()
)pattern
String 要输出的日期格式,默认:yyyy-MM-dd hh:mm:ss.i
(optional, default 'yyyy-MM-dd hh:mm:ss.i'
)Returns String
读取本地存储的值(不支持localStorage则降级到cookie)
Parameters
key
String 目标数据keyReturns String
将指定key对应值写入本地存储(不支持localStorage则降级到cookie)
Parameters
Returns String
FAQs
utils of chimee
The npm package chimee-helper-utils receives a total of 28 weekly downloads. As such, chimee-helper-utils popularity was classified as not popular.
We found that chimee-helper-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.