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
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
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