# All files / src/utils extend-node.js

100% Statements 4/4
100% Branches 0/0
100% Functions 1/1
100% Lines 3/3

    1
    2
    3
    4
    5
    6
    7
    8
    9
    1024x

    4528x
    2264x

     import curry from 'curry';

    export const extendNode = curry(({ meta, ...options }, node) => {
      return {
        ...node,
        meta: { ...node.meta, ...meta },
        ...options,
      };
    });