@resourge/react-fetch
Version:
[](LICENSE)
18 lines (16 loc) • 616 B
JavaScript
/**
* react-fetch v1.41.3
*
* Copyright (c) resourge.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
const calculateTotalPages = (perPage, totalItems = 0) => Math.ceil(totalItems / perPage) || 1;
function isBuiltinWithMutableMethods(value) {
return value instanceof Date || value instanceof Set || value instanceof Map || value instanceof WeakSet || value instanceof WeakMap || ArrayBuffer.isView(value);
}
export { calculateTotalPages, isBuiltinWithMutableMethods };
//# sourceMappingURL=utils.js.map