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