We can use any and some without a noun if the meaning of the sentence is clear. Examples: I didn't eat any burger but Peter ate some . (Burger) James took lots of photos of the camel but Emma didn't take any . (Photos) I'm making some coffee. Do you want some ? (Tea) A noun can be repeated after some and any . But it is more natural NOT to repeat it. Examples: How much tea is there? There is not any . (There isn't any tea.)
In this grammar website, you can find English grammar as follow: The use of articles, nouns, adjectives, pronouns, adverbs, clauses, and tenses.