shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
getKeyByValue
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.object
Return the key that correspond to the passed value in the passed object
Params
- object*-Object
The object in which to search for the value
- value*-Mixed
The value to find in the object
Return
- -String
The key of the wanted value or false if not found
Example
import { getKeyByValue } from '@blackbyte/sugar/object';
getKeyByValue({ hello: 'world' }, 'world'); // => helloTodo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space