Skip to content

Aeppic.Functions

resolveField

Resolve a field in a javascript object

Aeppic.Functions.resolveField(object: object, pathToField: string): any

const o = {
  data: {
    address: {
      street: 'Main Street'
    }
  }
}

const street = Aeppic.Functions.resolveField(o, 'data.address.street')
assert(street === 'Main Street')

deriveChildId

Concatenate the string arguments into a valid identifier string.

Aeppic.Function.deriveChildId(parentId: string, ...parts: string[]): string