An open API service indexing awesome lists of open source software.

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++

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.