0.0.8-kappa • Published 7 years ago

@flipit/utils v0.0.8-kappa

Weekly downloads
1
License
MIT
Repository
github
Last release
7 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

6 years ago

0.0.29

6 years ago

0.0.28

6 years ago

0.0.27

6 years ago

0.0.26

6 years ago

0.0.25

6 years ago

0.0.24

7 years ago

0.0.23

7 years ago

0.0.22

7 years ago

0.0.21

7 years ago

0.0.20

7 years ago

0.0.19

7 years ago

0.0.18

7 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8-kappa

7 years ago

0.0.8-iota

7 years ago

0.0.8-theta

7 years ago

0.0.8-eta

7 years ago

0.0.8-zeta

7 years ago

0.0.8-epsilon

7 years ago

0.0.8-delta

7 years ago

0.0.8-gamma

7 years ago

0.0.8-beta

7 years ago

0.0.8-alpha

7 years ago

0.0.7

7 years ago

0.0.7-beta

7 years ago

0.0.7-alpha

7 years ago

0.0.6

7 years ago

0.0.6-beta

7 years ago

0.0.6-alpha

7 years ago

0.0.5-beta

7 years ago

0.0.5-alpha

7 years ago

0.0.4-alpha

7 years ago

0.0.3-alpha

7 years ago

0.0.2-alpha

7 years ago

0.0.1-alpha

7 years ago