0.0.2 • Published 8 months ago

partition-record v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

partition-record

Install

npm install partition-record

Usage

import partitionRecord from 'partition-record'

const record = {
  stringValueKey: 'value',
  numberValueKey: 1
}

const [stringMap, numberMap] = partitionRecord(record, (key, value): value is string => typeof value === 'string')

Credits

  • Me, myself and I
0.0.2

8 months ago

0.0.1

8 months ago