View Code? Open in Web Editor
NEW
Short code snippets for all development requirements to grab easily
snips's Introduction
- ๐ผ I'm a full-stack developer
- ๐ Iโm interested in Javascript
- ๐ฑ Iโm currently learning React and GraphQL
snips's People
Watchers
snips's Issues
If there are the same keys in the objects and the first value is not a primitive data type, then it should merge also
- When adding a new code snippet use the template.MD file
The snip/function will receive two args
- the first one is the interval (in minutes) between two slots E.g. 30 mins
- and the second is exclude/break time E.g. "13:00 to 16:00" (this will be optional arg)
Eg.- random(100, 999); // 734
The snip/function will receive one arg(number) which is bytes and should return a human-readable string
The casings must include -
- Uppercase
- Lowercase
- Sentence case
- Title
optional, but great if included -
- snake
- constant
- camel
- kebab
- pascal
E.g. timeDiff("2022-10-27 17:30:00")
If suppose the current time is 17:35
then the output should be 5 minutes
If the current time is 18:35
output: 1 hour 5 minutes
The snip/function will receive two args
- the first one is the interval (in minutes) between two slots E.g. 30 mins
- and the second is exclude/break time E.g. "13:00 to 16:00" (this will be optional arg)