Skip to content

Gracefully throw error when resolving parameter #661

Open

Description

@MacMcIrish

const resolvedParams = await Promise.all(paramsPending
.map(async ([name, value]) => [name, typeof value === 'function' ? await value(paramsPendingObj) : value]));
return resolvedParams.reduce((prev, [key, value]) => Object.assign(prev, { [key]: value }), {});

Activity

  1. simlu commented on May 8, 2019

    @simlu
    Collaborator

    Need to consider how to refactor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions