(value)
| 86 | |
| 87 | export class KeyedSeq extends Seq { |
| 88 | constructor(value) { |
| 89 | // eslint-disable-next-line no-constructor-return |
| 90 | return value === undefined || value === null |
| 91 | ? emptySequence().toKeyedSeq() |
| 92 | : isCollection(value) |
| 93 | ? isKeyed(value) |
| 94 | ? value.toSeq() |
| 95 | : value.fromEntrySeq() |
| 96 | : isRecord(value) |
| 97 | ? value.toSeq() |
| 98 | : keyedSeqFromValue(value); |
| 99 | } |
| 100 | |
| 101 | toKeyedSeq() { |
| 102 | return this; |
nothing calls this directly
no test coverage detected