Variable
Static Public Summary | ||
public |
retrieve absolute value of a number Math.abs |
|
public |
retrieve inverted number |
|
public |
retrieve trimmed string |
Static Public
public abs: function source
import {abs} from 'corrode/src/map/index.js'
retrieve absolute value of a number Math.abs
Example:
this.int8('value').map.abs('value')
// [-14] => { value: 14 }
Test:
public invert: function source
import {invert} from 'corrode/src/map/index.js'
retrieve inverted number
Example:
this.uint8('value').map.abs('value')
// [27] => { value: -27 }
Test:
public trim: function source
import {trim} from 'corrode/src/map/index.js'
retrieve trimmed string
Example:
this.terminatedString('value').map.trim('value')
// [' ', '\t', 'f', 'o', 'b', 'r', '\n'] => { value: 'fobr' }