Description
Installation
Usage
Strings
capitalize()
truncate()
toggleStrNum()
camelCaseToSpaces()
logFormattedStrings()
getInnerHTML()
random...
For further actions, you may consider blocking this person and/or reporting abuse
for deep clone I prefer lodash because this method while it can be good in some cases it can fail.
Because it can lose data in some cases
Like Dates, functions, undefined, Infinity, RegExps, Maps, Sets, Blobs, or other complex types within your object it can be list or strigified
Its only good for object with string and numbers most of the time.
Still those are great functions that can be used in a large amount of projects
Thanks, My friend!
I modified the article based on your feedback!
there is a method I use a lot when I need to submit urls
Excellent!
Hello, nice list!
runEvery
function is broken, it runs a script every x milliseconds ifhour
is after the given hour andminute
is after the given minute, so given this input:and the time now is 3:17 PM it will try running at 8:17 PM but
now.getMinutes() >= mins
will return false and the function will not execute, and every 5 hours it will always return falseBut if you set minutes to 0 or someone starts the application after the provided minute it will execute every interval after the given time.
If the goal is to make a function that runs every day at a certain time, you need to get the time to the next occurrence and start the interval then, something like this:
Great!
Thanks for your feedback!
I'll check my code again and get back to you.
Hello!
I tried to run your function but it doesn't seem to be working.
Hey Youssif, I've just tried running the code in the console and it seems to be working.
You just need to set the time to be coming up in a minute or two so that you wouldn't wait for long for the next occurrence
and this one I am using regularly
Nice!
I like it!
i think it would be good for you to create this into an npm package.
It's on my plan but i need to increase the number of functions.
I would like to help with the npm
I would like to help too. Maybe we can build something bigger between us!
I have a bunch of react-native utils that may be interesting.
That's great!
Maybe we can do something together.
Nice collection, thanks!
1024 = 1k bytes
Thanks, My friend!
I modified the article based on your feedback!
The way you're deep cloning is bad practice. If you're gonna copy and paste helpers might as ok copy and paste lodash's implementation.
Thanks, My friend!
I modified the article based on your feedback!
Great Post!
I use Number.prototype.toLocaleString() to get formatted numbers 😁
This is amazing!
Thanks for sharing!
I Modified the article based on your feedback!
Thanks, my friend!
Thanks for sharing. I recommend you to create a Github gist for most of it and share the links here.
Thanks, Sure I'll do so.
Dear YoussefZidan,may I translate your article into Chinese?I would like to share it with more developers in China. I will give the original author and original source.
Sure!