How to use just-pluck-it - 1 common examples

To help you get started, we’ve selected a few just-pluck-it 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 ritz078 / embed-js / packages / embed-plugin-noembed / src / noembed-regex.js View on Github external
export default function getRegexes(excludeServices = []) {
  const includedRegexes = regexes.filter(
    r => excludeServices.indexOf(r.name.toLowerCase()) === -1
  )
  const patterns = flatten(pluck(includedRegexes, "patterns"))
  return new RegExp(patterns.join("|"), "gi")
}

just-pluck-it

pluck a property from each member of a collection

MIT
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis

Popular just-pluck-it functions