Skip to content

hexadecimals() Helper Method

The hexadecimals() Helper Method module provides a helper function that returns an array of valid individual hexadecimal character strings for further processing.

Import

To import the hexadecimals() Helper Method:

javascript
import { hexadecimals } from '@obewds/vueventus'

Arguments

Returns: Number

The hexadecimals() Helper Method does not have any arguments.

Use Example

javascript
console.log( hexadecimals() )
// returns (array): ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f']

Module Code

ts
// ./src/helpers/hexadecimals.ts

export default function (): string[] {
    return ('0123456789abcdef').split('')
}

Released under the MIT License