ramda#test JavaScript Examples

The following examples show how to use ramda#test. 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: Box.js    From lundium with MIT License 5 votes vote down vote up
omitInvalidProps = compose(
	fromPairs,
	// filter only event handlers and data-attributes.
	// Due to backwards compatibily we can't use `elementProps`
	filter(([prop]) => test(/^(on|data-|role|aria-)/, prop)),
	toPairs,
)
Example #2
Source File: breakDownAllNodes.js    From gatsby-startbootstrap-agency with MIT License 5 votes vote down vote up
propFilter = curry((pathList, regex) => pathSatisfies(test(regex), pathList))