Function
Static Public Summary | ||
public |
Filter even values |
|
public |
Filter float values |
|
public |
Filter integer values |
|
public |
leastFactor(n: Number): Number Returns the smallest prime that divides n |
|
public |
Filter negative values |
|
public |
Filter nonZero values |
|
public |
Filter odd values |
|
public |
Filter positive values |
|
public |
Filter prime values |
|
public |
Filter zero values |
Static Public
public even(value: Number): Boolean source
import even from 'stats-collector/lib/filters/number/even'
Filter even values
Params:
Name | Type | Attribute | Description |
value | Number | The value to Filter |
public float(value: Number): Boolean source
import float from 'stats-collector/lib/filters/number/float'
Filter float values
Params:
Name | Type | Attribute | Description |
value | Number | The value to Filter |
public integer(value: Number): Boolean source
import integer from 'stats-collector/lib/filters/number/integer'
Filter integer values
Params:
Name | Type | Attribute | Description |
value | Number | The value to Filter |
public leastFactor(n: Number): Number source
import leastFactor from 'stats-collector/lib/helpers/leastFactor'
Returns the smallest prime that divides n
Original Source: http://www.javascripter.net/faq/numberisprime.htm
Params:
Name | Type | Attribute | Description |
n | Number | The input number |
Return:
Number | returns the smallest prime that divides n
|
public negative(value: Number): Boolean source
import negative from 'stats-collector/lib/filters/number/negative'
Filter negative values
Params:
Name | Type | Attribute | Description |
value | Number | The value to Filter |
public nonZero(value: Number): Boolean source
import nonZero from 'stats-collector/lib/filters/number/nonZero'
Filter nonZero values
Params:
Name | Type | Attribute | Description |
value | Number | The value to Filter |
public odd(value: Number): Boolean source
import odd from 'stats-collector/lib/filters/number/odd'
Filter odd values
Params:
Name | Type | Attribute | Description |
value | Number | The value to Filter |
public positive(value: Number): Boolean source
import positive from 'stats-collector/lib/filters/number/positive'
Filter positive values
Params:
Name | Type | Attribute | Description |
value | Number | The value to Filter |
public prime(value: Number): Boolean source
import prime from 'stats-collector/lib/filters/number/prime'
Filter prime values
Params:
Name | Type | Attribute | Description |
value | Number | The value to Filter |