/**
 * @license Copyright (c) 2017-2025, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md.
 */

/**
 * Checks if a property is considered unsafe.
 *
 * @param property - The property to check.
 * @returns True if the property is unsafe, false otherwise.
 */
export function isUnsafeProperty( property ) {
	return [ '__proto__', 'constructor', 'prototype' ].includes( property );
}
