Skip to content

leumasic/partition-record

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published