0.2.1 • Published 6 years ago

ember-precondition v0.2.1

Weekly downloads
10
License
-
Repository
github
Last release
6 years ago

ember-precondition Build Status

A Precondition utility library, inspired by guava Precondition class.

Usage

import Precondition from "ember-precondition/utils/precondition";

Precondition.checkString(variable)

Precondition.checkArray(variable)

Precondition.checkFunction(variable)

Precondition.checkNull(variable) // undefined is treated as null, return null instead of undefined.

Precondition.checkNotNull(variable)

Precondition.checkEmpty(variable)

Precondition.checkNotEmpty(variable)

if match the condition, the variable will be returned, otherwise exception is thrown.

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.

0.2.1

6 years ago

0.2.0

6 years ago

0.1.6

8 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.0

9 years ago