index.js
function any(config) {
  return setter

  // Patch data-properties on `node`s with a value and words.
  function setter(node) {
    var value
    var polarity

    if ('value' in node || node.type === 'WordNode') {
      value = nlcstToString(node)

      if (config && own.call(config, value)) {
        polarity = config[value]
      } else if (own.call(polarities, value)) {
        polarity = polarities[value]
      }

      if (polarity) {
        patch(node, polarity)
      }
    }
  }
}
function any(config) {
  return setter

  // Patch data-properties on `node`s with a value and words.
  function setter(node) {
    var value
    var polarity

    if ('value' in node || node.type === 'WordNode') {
      value = nlcstToString(node)

      if (config && own.call(config, value)) {
        polarity = config[value]
      } else if (own.call(polarities, value)) {
        polarity = polarities[value]
      }

      if (polarity) {
        patch(node, polarity)
      }
    }
  }
}
function any ( config ) { return setter // Patch data-properties on `node`s with a value and words. function setter ( node ) { var value var polarity if ( 'value' in node || node . type === 'WordNode' ) { value = nlcstToString ( node ) if ( config && own . call ( config , value ) ) { polarity = config [ value ] } else if ( own . call ( polarities , value ) ) { polarity = polarities [ value ] } if ( polarity ) { patch ( node , polarity ) } } } }
Factory to patch based on the bound `config`.
Factory to patch based on the bound config .