(index = 0, options?: { inplace?: boolean })
| 158 | */ |
| 159 | charAt(index: number, options?: { inplace?: boolean }): Series |
| 160 | charAt(index = 0, options?: { inplace?: boolean }): Series | void { |
| 161 | const { inplace } = { inplace: false, ...options } |
| 162 | const newArr: Array<string | number> = []; |
| 163 | this.values.map((val) => { |
| 164 | if (utils.isEmpty(val)) { |
| 165 | newArr.push(NaN); |
| 166 | } else { |
| 167 | newArr.push(`${val}`.charAt(index)); |
| 168 | } |
| 169 | }); |
| 170 | if (inplace) { |
| 171 | this.series.$setValues(newArr as ArrayType1D) |
| 172 | this.series.print() |
| 173 | } else { |
| 174 | const sf = this.series.copy() |
| 175 | sf.$setValues(newArr as ArrayType1D) |
| 176 | return sf; |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | /** |
| 181 | * Joins specified `other` with values in the Series. |
no test coverage detected