(indexOrIndexArray)
| 15981 | return this._getSubparticlesArray()[index] |
| 15982 | } |
| 15983 | particleAt(indexOrIndexArray) { |
| 15984 | if (typeof indexOrIndexArray === "number") return this._particleAt(indexOrIndexArray) |
| 15985 | if (indexOrIndexArray.length === 1) return this._particleAt(indexOrIndexArray[0]) |
| 15986 | const first = indexOrIndexArray[0] |
| 15987 | const particle = this._particleAt(first) |
| 15988 | if (!particle) return undefined |
| 15989 | return particle.particleAt(indexOrIndexArray.slice(1)) |
| 15990 | } |
| 15991 | // Flatten a particle into an object like {twitter:"pldb", "twitter.followers":123}. |
| 15992 | // Assumes you have a nested key/value list with no multiline strings. |
| 15993 | toFlatObject(delimiter = ".") { |
no test coverage detected