Download wp-calypso/client/state/document-head/selectors/get-document-head-link.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 347 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/document-head/selectors/get-document-head-link.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/document-head/selectors/get-document-head-link.js
-
curl -L -o get-document-head-link.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/document-head/selectors/get-document-head-link.js
347 Bytes
| import 'calypso/state/document-head/init'; | |
| /** | |
| * Returns an array of document link objects as set by the DocumentHead | |
| * component or setDocumentHeadLink action. | |
| * @param {Object} state Global state tree | |
| * @returns {Object[]} Array of link objects | |
| */ | |
| export function getDocumentHeadLink( state ) { | |
| return state.documentHead.link; | |
| } | |