// Tremor Raw hasOnlyOneValueForKey [v0.1.0]
export function hasOnlyOneValueForKey(array, keyToCheck) {
    const val = [];
    for (const obj of array) {
        if (Object.prototype.hasOwnProperty.call(obj, keyToCheck)) {
            val.push(obj[keyToCheck]);
            if (val.length > 1) {
                return false;
            }
        }
    }
    return true;
}
//# sourceMappingURL=HasOnlyOneValueForKey.js.map