get the name of an array as a string [duplicate]

I want to get the name of an array as a string, and I need some sort of function like var.getname(), is there anything like this? maybe something that looks like this:

var foo = [
'0',
'1',
'2'
]
console.log(foo.getArrayName())
=> foo