Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1import baseKeys from './_baseKeys.js';2import getTag from './_getTag.js';3import isArguments from './isArguments.js';4import isArray from './isArray.js';5import isArrayLike from './isArrayLike.js';6import isBuffer from './isBuffer.js';7import isPrototype from './_isPrototype.js';8import isTypedArray from './isTypedArray.js';9 10/** `Object#toString` result references. */11var mapTag = '[object Map]',12 setTag = '[object Set]';13 14/** Used for built-in method references. */15var objectProto = Object.prototype;16 17/** Used to check objects for own properties. */18var hasOwnProperty = objectProto.hasOwnProperty;19 20/**21 * Checks if `value` is an empty object, collection, map, or set.22 *23 * Objects are considered empty if they have no own enumerable string keyed24 * properties.25 *26 * Array-like values such as `arguments` objects, arrays, buffers, strings, or27 * jQuery-like collections are considered empty if they have a `length` of `0`.28 * Similarly, maps and sets are considered empty if they have a `size` of `0`.29 *30 * @static31 * @memberOf _32 * @since 0.1.033 * @category Lang34 * @param {*} value The value to check.35 * @returns {boolean} Returns `true` if `value` is empty, else `false`.36 * @example37 *38 * _.isEmpty(null);39 * // => true40 *41 * _.isEmpty(true);42 * // => true43 *44 * _.isEmpty(1);45 * // => true46 *47 * _.isEmpty([1, 2, 3]);48 * // => false49 *50 * _.isEmpty({ 'a': 1 });51 * // => false52 */53function isEmpty(value) {54 if (value == null) {55 return true;56 }57 if (isArrayLike(value) &&58 (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||59 isBuffer(value) || isTypedArray(value) || isArguments(value))) {60 return !value.length;61 }62 var tag = getTag(value);63 if (tag == mapTag || tag == setTag) {64 return !value.size;65 }66 if (isPrototype(value)) {67 return !baseKeys(value).length;68 }69 for (var key in value) {70 if (hasOwnProperty.call(value, key)) {71 return false;72 }73 }74 return true;75}76 77export default isEmpty;78 