Write a function with the signature shown below:
```python
def is_int_array(arr):
    return True
```
* returns `true  / True`  if every element in an array is an integer or a float with no decimals.
* returns `true  / True`  if array is empty.
* returns `false / False` for every other input.

Source: codewars | Difficulty: EASY
Tags: Fundamentals

Data structures

Starter code: def is_int_array(arr):
	

Solutions:
def is_int_array(a):
	return isinstance(a, list) and all((isinstance(x, (int, float)) and x == int(x) for x in a))


def is_int_array(arr):
	if arr == []:
		return True
	if arr in [None, '']:
		return False
	for i in arr:
		if type(i) in [int, float]:
			if int(i) != i:
				return False
		else:
			return False
	return True


def is_int_array(arr):
	if arr is None or type(arr) is str or None in arr:
		return False
	else:
		for i in arr:
			if type(i) is str or i % 1 != 0:
				return False
	return True


def is_int_array(arr):
	return isinstance(arr, list) and all((isinstance(e, int) or (isinstance(e, float) and e.is_integer()) for e in arr))


def is_int_array(arr):
	try:
		return list(map(int, arr)) == arr
	except:
		return False


def is_int_array(arr):
	a = []
	if arr == None or arr == '':
		return False
	for i in arr:
		if type(i) == int:
			a.append(i)
		elif type(i) == float and i.is_integer():
			a.append(i)
	if len(arr) == len(a):
		return True
	return False


def is_int_array(arr):
	return isinstance(arr, list) and all(map(lambda x: isinstance(x, (int, float)) and int(x) == x, arr))


is_int_array = lambda a: isinstance(a, list) and all((isinstance(i, (int, float)) and i == int(i) for i in a))


def isInt(n):
	try:
		return int(n) == float(n)
	except (TypeError, ValueError):
		return False

def is_int_array(arr):
	my_list = []
	if type(arr) is not list:
		return False
	if not arr:
		return True
	else:
		for x in arr:
			if type(x) is int or type(x) is float:
				if isInt(x):
					my_list.append(1)
		if len(arr) == len(my_list):
			return True
		else:
			return False