Download wp-calypso/client/state/selectors/get-connected-applications.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 318 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/get-connected-applications.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/selectors/get-connected-applications.js
-
curl -L -o get-connected-applications.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/get-connected-applications.js
318 Bytes
| import { get } from 'lodash'; | |
| import 'calypso/state/connected-applications/init'; | |
| /** | |
| * Returns the connected applications of the current user. | |
| * @param {Object} state Global state tree | |
| * @returns {?Array} Connected applications | |
| */ | |
| export default ( state ) => get( state, 'connectedApplications', null ); | |