import Immutable from 'immutable'

export function keyIn(keys) {
  const keySet = Immutable.Set(keys)
  return (value, key) => {
    return keySet.has(key)
  }
}

import Immutable from 'immutable'

export default function keyIn(keys) {
  const keySet = Immutable.Set(keys)
  return (value, key) => {
    return keySet.has(key)
  }
}

index expects default export