(indefinite)(singular) Any one of all things. You use this when there is nolimit to what might be meant. You might be able to change "anything" to any other word.
Anything is not like a pronoun. It has no reflexive form and no different subject or object forms. It even uses the possessive 's of common nouns. For this reason, some people consider it to be a compounddeterminer.