Download wp-calypso/client/lib/domains/is-hsts-required.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 231 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/domains/is-hsts-required.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/domains/is-hsts-required.js
-
curl -L -o is-hsts-required.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/domains/is-hsts-required.js
231 Bytes
| import { find, get } from 'lodash'; | |
| export function isHstsRequired( productSlug, productsList ) { | |
| const product = find( productsList, [ 'product_slug', productSlug ] ) || {}; | |
| return get( product, 'is_hsts_required', false ); | |
| } | |