lodash#values JavaScript Examples

The following examples show how to use lodash#values. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.jsx    From eleventy-react with MIT License 6 votes vote down vote up
export default function Script({ libs, children }) {
    const cssLibsString = libs?.map((lib) => values(omit(lib, 'js')));
    const jsLibsString = libs?.map((lib) => values(omit(lib, 'css')));
    return (
        <div
            hidden
            className="client-script"
            data-js-libs={jsLibsString?.length ? jsLibsString : ''}
            data-css-libs={cssLibsString?.length ? cssLibsString : ''}
            dangerouslySetInnerHTML={{ __html: children }}
        />
    );
}
Example #2
Source File: ContainedGroup.jsx    From covid19-testing with Apache License 2.0 5 votes vote down vote up
GroupPositionPropType = PropTypes.oneOf(values(CONTAINED_GROUP_POSITION))