Created
July 22, 2021 06:34
-
-
Save mijms/a3e5a38448521e6af8e624bf2eb2c970 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {get} from 'lodash' | |
let x = {a: 1, b:2} | |
// a and b is conditional key like if key == a | |
let hope = get(x, 'kkk', 'not exist'); | |
// magic is just happen not exist is appear welcome lodash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment