JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 449
  • Score
    100M100P100Q105715F
  • License Apache-2.0

Lightweight utils for every project

Package Exports

  • @techmmunity/utils

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@techmmunity/utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Techmmunity - Utils

Style Guide: Techmmunity CodeFactor Coveralls Tests Npm Downloads

Package of utils, make in a way to let you import only the functions that you really need, so it doesn't make your project heavier than it needs to be.

function description
cleanObj Remove undefined and null values from an object
getArrayUniqueValues Remove duplicated values of an array (only work with primitive values)
getTypeof Fix native "typeof"
hasRequiredEnvVars Verify if all env vars are defined
isEmptyArray Checks if is an array and it's empty
isEmptyObject Checks if is an object and it's empty
isNotEmptyArray Checks if is an array and it's NOT empty
isNotEmptyObject Checks if is an object and it's NOT empty

Install

With Yarn:

yarn add @techmmunity/utils

With NPM:

npm i @techmmunity/utils

How to contribute?

All the details about contributing to the project are described here.

Documentation