Dictionaries.deleteKey()

Delete a key from a dictionary and return the result (a new dictionary).

Usage

Hover over inputs/exits for more info.

var Dictionaries = require('machinepack-dictionaries');


// Delete a key from a dictionary and return the result (a new dictionary).

Dictionaries.deleteKey({

dictionary: {},

key: 'password',

}).execSync();

Inputs

dictionary required

The dictionary to delete the key from.

{}
key required

The key to delete.

'password'

Exits

error

An unexpected error occurred.

noSuchKey

The specified key does not exist.

success

OK.

(varies based on provided inputs)