@nepwork/dashboards
Version:
Dashboards for emergencies and monitoring
17 lines (13 loc) • 348 B
JavaScript
import {get, set} from "./schedule";
function easeConstant(id, value) {
if (typeof value !== "function") throw new Error;
return function() {
set(this, id).ease = value;
};
}
export default function(value) {
var id = this._id;
return arguments.length
? this.each(easeConstant(id, value))
: get(this.node(), id).ease;
}