How to use the ramda-adjunct.ensureArray function in ramda-adjunct

To help you get started, we’ve selected a few ramda-adjunct examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Undistraction / gatsby-starter-skeleton / src / components / styles / mixins / defaultBorder.js View on Github external
const defaultBorder = api => (edges = [`top`]) => css`
  border-image-slice: 30;
  border-style: solid;
  border-width: 0;
  ${map(edge => `border-${edge}-width: 1px;`, ensureArray(edges))};
  ${api({
    borderImageSource: `g:lightFade`,
  })};
`
github Undistraction / cssapi / src / objects / breakpointDescriptor.js View on Github external
const createBreakpointDescriptor = curry((name, range) => ({
  name,
  range: ensureArray(range),
}))