0.0.30 • Published 5 years ago

@flipit/utils v0.0.30

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@flipit/utils

This is a basic function group for @flipit component library. Let's see it as follows agenda:

What is @flipit

It's a component library for Vue, and @flipit/utils is the base for the other extended libraries of @flipit. Presently, it's just a JS function group.

Install & Import

Basically, we don't need to extra install @flipit/utils. It'll be installed when you install the extended libraries. But if you wanna use the JS function group only, you could try as follows: npm i @flipit/utils -s After installed, try to import it: import FlipitFn from '@flipit/utils';

API Documentation

Let's see what FlipitFn provided.

FlipitFn

  • isEmpty(value: any): boolean Check the input value is empty or not, like undefied / null / empty array.

    • Parameters
      • value: any The target checked value.
    • Return: boolean Return true means the value is empty, and false means not.
  • isMobile(): boolean Check user is using mobile or not. In the extended libraries, there are some UI-components will change their layout to become suitable for mobile.

    • Return: boolean Return true means user is using mobile, and false means not.
  • doStopEvent(e: Event): void This function will be used to cancel the event which is triggered in Javascript.

    • Parameters
      • e: Event This parameter is from Javascript event.
  • <T>toUniqueArray(arr: T[]): T[] This function could help us to make the properties in the specific array be unique. It's a generic function, and you don't need to specify the array type.

    • Parameters
      • arr: T[] Input the array which need to be unique.
    • Return: T[] Return the unique result.
0.0.30

5 years ago

0.0.29

5 years ago

0.0.28

5 years ago

0.0.27

5 years ago

0.0.26

5 years ago

0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8-kappa

5 years ago

0.0.8-iota

5 years ago

0.0.8-theta

5 years ago

0.0.8-eta

5 years ago

0.0.8-zeta

5 years ago

0.0.8-epsilon

5 years ago

0.0.8-delta

5 years ago

0.0.8-gamma

5 years ago

0.0.8-beta

5 years ago

0.0.8-alpha

5 years ago

0.0.7

5 years ago

0.0.7-beta

5 years ago

0.0.7-alpha

5 years ago

0.0.6

5 years ago

0.0.6-beta

5 years ago

0.0.6-alpha

5 years ago

0.0.5-beta

5 years ago

0.0.5-alpha

5 years ago

0.0.4-alpha

5 years ago

0.0.3-alpha

5 years ago

0.0.2-alpha

5 years ago

0.0.1-alpha

5 years ago