replacer = (key, value) => {
  switch (key) {
    case 'transforms':
    case 'plane':
      return Array.from(value)
    case 'points':
    case 'vertices':
      return value.map((v) => Array.from(v))
    case 'sides':
      return value.map((s) => [Array.from(s[0]), Array.from(s[1])])
    default:
      break
  }
  return value
}
Serializer of JSCAD geometries to JSON strings.
@module io/json-serializer
@example
const { serializer, mimeType } = require('@jscad/json-serializer')