Function
| Static Public Summary | ||
| public |
Return the passed argument as is. |
|
| public |
Check if a numeric value is an even number. |
|
| public |
Check if a numeric value is an odd number. |
|
Static Public
public index(input: String): String source
import index from 'node-mdl-starter/src/index.js'Return the passed argument as is.
Params:
| Name | Type | Attribute | Description |
| input | String |
|
input argument to return. |
public isEven(number: Number): Boolean source
import {isEven} from 'node-mdl-starter/src/index.js'Check if a numeric value is an even number.
Params:
| Name | Type | Attribute | Description |
| number | Number | a number to check. |
Throw:
throw error when the argument is not a number. |
Test:
public isOdd(number: Number): Boolean source
import {isOdd} from 'node-mdl-starter/src/index.js'Check if a numeric value is an odd number.
Params:
| Name | Type | Attribute | Description |
| number | Number | a number to check. |
Throw:
throw error when the argument is not a number. |
