https://github.com/divinrkz/one-liners
Quick One Liners in JavaScript, TypeScript, Python, Rust, Java, Ruby, C, C++
https://github.com/divinrkz/one-liners
c cpp java javascript php python ruby rust typescript
Last synced: 8 months ago
JSON representation
Quick One Liners in JavaScript, TypeScript, Python, Rust, Java, Ruby, C, C++
- Host: GitHub
- URL: https://github.com/divinrkz/one-liners
- Owner: divinrkz
- License: mit
- Created: 2022-02-28T05:48:17.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-28T08:16:59.000Z (about 4 years ago)
- Last Synced: 2023-08-06T21:10:14.705Z (over 2 years ago)
- Topics: c, cpp, java, javascript, php, python, ruby, rust, typescript
- Language: TypeScript
- Homepage:
- Size: 6.84 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ONE LINERS
This repository contains cool and simple one line utility functions to easily use common repetitive methods in
JavaScript, TypeScript, Python, Rust, Java, Ruby, C, C++ and more ...
### TYPESCRIPT
- `wait`: Waits for a specific amount of time in milliseconds.
- `isWeekDay`: Checks if a date is a weekDay.
- `reverse`: Reverses a string.
- `isEven`: Check if a number is even.
- `capitalize`: Capitalizing a string.
- `isArrayEmpty`: Checks if an array is empty.
- `isObjectEmpty`: Checks if an object/array is empty.
- `randomInteger`: Generate random int from two parameters.
- `toggleBoolean`: Toogles a boolean value.
### JAVASCRIPT
- `wait`: Waits for a specific amount of time in milliseconds.
- `isWeekDay`: Checks if a date is a weekDay.
- `reverse`: Reverses a string.
- `isEven`: Check if a number is even.
- `capitalize`: Capitalizing a string.
- `isArrayEmpty`: Checks if an array is empty.
- `isObjectEmpty`: Checks if an object/array is empty.
- `randomInteger`: Generate random int from two parameters.
- `toggleBoolean`: Toogles a boolean value.