The tokenList filter operates on an object and uses the keys in the object to build a space separated string, including the key if the value is truthy.

For example:

  {x: 1, y: 0, z: 1} | tokenList

gets transformed into:

  "x z"

R=rafaelw@chromium.org

Review URL: https://codereview.appspot.com/12851044