constant function

dynamic constant(
  1. dynamic v
)

@exports opentype.sizeOf @class

Implementation

// var sizeOf = {};

// Return a function that always returns the same value.
constant(v) {
  return () {
    return v;
  };
}