@base-ui-components/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
12 lines (11 loc) • 320 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.replaceArrayItemAtIndex = replaceArrayItemAtIndex;
var _asc = require("./asc");
function replaceArrayItemAtIndex(array, index, newValue) {
const output = array.slice();
output[index] = newValue;
return output.sort(_asc.asc);
}
;