/one-liners

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

Primary LanguageTypeScriptMIT LicenseMIT

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.