Range
PackagesGitHub
Draft
Draft
  • Introduction
  • ❤ Benefits
  • General concepts
  • Getting started
    • Skeleton
    • Installation
      • npm
    • Public API
    • Basic concepts
  • Greater {}
    • Overview
    • Generic type variables
    • ★ Constructor
    • Accessors
      • get [Symbol.toStringTag]()
    • Methods
      • static create()
      • static isGreater()
      • than()
      • thanEvery()
      • thanSome()
      • valueOf()
  • Inequality {}
    • Overview
    • Generic type variables
    • Constructor
    • Accessors
      • get greater()
      • get less()
    • Properties
      • #greater
      • #less
    • Methods
      • greaterThan()
      • greaterThanEvery()
      • greaterThanSome()
      • lessThan()
      • lessThanEvery()
      • lessThanSome()
  • Less {}
    • Overview
    • Generic type variables
    • ★ Constructor
    • Accessors
      • get [Symbol.toStringTag]()
    • Methods
      • static create()
      • static isLess()
      • than()
      • thanEvery()
      • thanSome()
      • valueOf()
    • Example usage
  • Maximum {}
    • Overview
    • Generic type variables
    • ★ Constructor
    • Accessors
      • get [Symbol.toStringTag]()
    • Methods
      • static create()
      • static isMaximum()
      • valueOf()
  • Minimum {}
    • Overview
    • Generic type variables
    • ★ Constructor
    • Accessors
      • get [Symbol.toStringTag]()
    • Methods
      • static create()
      • static isMinimum()
      • valueOf()
  • Number {}
    • Overview
    • Generic type variables
    • ★ Constructor
    • Methods
      • static create()
      • static isNumber()
      • valueOf()
  • Range {}
    • Overview
    • Generic type variables
    • ★ Constructor
    • Accessors
      • get range()
      • get step()
      • get steps()
      • value()?
      • get [Symbol.toStringTag]()
    • Properties
      • max!
      • min!
      • #maximum
      • #minimum
      • #step
      • #value?
    • Methods
      • ↓ Static
      • static create()
      • static createFrom()
      • static createMaximum()
      • static createMinimum()
      • static isRange()
      • ↓ Instance
      • forEachStep()
      • getCurrentRange()
      • getCurrentStep()
      • ⚠ getMax()
      • ⚠ getMin()
      • getRange()
      • getRangeOfStep()
      • getValueOfStep()
      • has()
      • hasEvery()
      • hasSome()
      • isBetween()
      • isBetweenEvery()
      • isBetweenSome()
      • maxGreaterThan()
      • maxLessThan()
      • minGreaterThan()
      • minLessThan()
      • setValue()
      • setValueToStep()
      • stepByStep()
      • ⚠ toArray()
      • valueDown()
      • ⚠ valueOf()
      • valueUp()
  • Change log
    • Keep a changelog
    • CHANGELOG.md
    • v1.0.0-rc.0
    • v1.0.0-rc
    • v1.0.0-beta.0
  • GIT
    • Commit
    • Semantic Versioning
  • License
    • MIT
  • Social
    • Gettr
    • Twitter
    • YouTube
  • Contact
    • ⋯ Chat
    • @ Email
    • ✆ Phone
  • Donate
    • ฿ Cryptocurrency
    • $ Fiat
Powered by GitBook
On this page
  • Primitive wrapper object of Number
  • Functionality
Edit on GitHub

❤ Benefits

PreviousIntroductionNextGeneral concepts

Last updated 3 years ago

Primitive wrapper object of Number

Some objects are based on , and below is a list containing some pros of using them and important design benefits.

Immutability

✓ primitive value of .

The exact type

✓ Specific functionality objects with generic type variables(which preserves exact type) act as precise types.

Object as types

✓ Objects have the changed to unique immutable names.

✓ Type of the objects can be determined by the . because of its uniqueness and immutability.

✓ There is prepared function function of to determine these objects type.

Functionality follows the type

✓ The most important functionalities for a specific name.

✓ Objects have functionalities that use primitive values.

Intuitiveness

✓ General and object names.

✓ names of generic type variables.

✓ accessor and property names.

✓ method names.

Minimalism and simplicity

✓ Minimal, simple to use and an ease-extendable objects.

Functionality

Greater

✓ Checks whether the primitive value is greater than the given value.

✓ Checks whether the primitive value is greater than every of the given values.

✓ Checks whether the primitive value is greater than some given values.

Less

✓ Checks whether the primitive value is less than the given value.

✓ Checks whether the primitive value is less than every of the given values.

✓ Checks whether the primitive value is less than some given values.

Inequality

✓ Functionality of both the Greater and Less objects.

✓ Checks the primitive value whether it is between the given range of the minimum and maximum.

✓ Checks the primitive value whether it is between every value of the given ranges.

✓ Checks the primitive value whether it is between some given values.

Maximum

✓ Functionality of the Inequality abstract object.

✓ Indicates the maximum value.

Minimum

✓ Functionality of the Inequality abstract object.

✓ Indicates the minimum value.

Range

✓ Indicates the range of minimum and maximum with the value and step.

✓ The range value gives the current range.

✓ Updates current range by specified steps down/up, or exact to the step.

✓ Checks whether range of the given minimum and maximum is between the range of a specified Range object.

✓ Checks whether the range of a specified Range object is between every range of the given ranges.

✓ Checks whether the range of a specified Range object is between some given ranges.

primitive wrapper objects
Immutable
primitive wrapper objects
Symbol.toStringTag
Object.prototype.toString.call()
typeOf()
@angular-package/type
intuitive
Intuitive
Intuitive
Intuitive