"use strict"
Object.defineProperty(exports, "__esModule", { value: true })
exports.getAndUpdate = void 0
// tracing: off
const modify_1 = require("./modify")
/**
 * Atomically modifies the `FiberRef` with the specified function and returns
 * the old value.
 */
const getAndUpdate = (f) => (0, modify_1.modify)((v) => [v, f(v)])
exports.getAndUpdate = getAndUpdate
//# sourceMappingURL=getAndUpdate.js.map
