Download wp-calypso/client/state/currency-code/selectors.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 284 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/currency-code/selectors.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/currency-code/selectors.js
-
curl -L -o selectors.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/currency-code/selectors.js
284 Bytes
| import 'calypso/state/currency-code/init'; | |
| /** | |
| * Returns the currency code for the current user. | |
| * @param {Object} state Global state tree | |
| * @returns {?string} Current currency code | |
| */ | |
| export function getCurrentUserCurrencyCode( state ) { | |
| return state.currencyCode; | |
| } | |