divinrkz / one-liners

Quick One Liners in JavaScript, TypeScript, Python, Rust, Java, Ruby, C, C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Quick One Liners in JavaScript, TypeScript, Python, Rust, Java, Ruby, C, C++

License:MIT License


Languages

Language:TypeScript 56.9%Language:JavaScript 43.1%